Skip to content

Commit

Permalink
2024-03-27
Browse files Browse the repository at this point in the history
  • Loading branch information
luciano_bestia committed Mar 27, 2024
1 parent a9a06d8 commit bb3b934
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion automation_tasks_rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn task_doc() {
cl::run_shell_command("rsync -a --info=progress2 --delete-after target/doc/ docs/");
// Create simple index.html file in docs directory
cl::run_shell_command(&format!(
r#"echo "<meta http-equiv=\"refresh\" content=\"0; url={}/index.html\" />" > docs/index.html"#,
r#"printf "<meta http-equiv=\"refresh\" content=\"0; url={}/index.html\" />" > docs/index.html\n"#,
cargo_toml.package_name().replace("-", "_")
));
// pretty html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x

PATH=~/.cargo/bin/:${PATH}

echo "${CREV_SECRET_KEY}" | cargo-crev crev trust "$1" --level none
printf "${CREV_SECRET_KEY}\n" | cargo-crev crev trust "$1" --level none

RESULT=$?

Expand Down
12 changes: 6 additions & 6 deletions var_www_scripts/cargo_crev_web/cargo_crev_web_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# cargo_crev_web_publish.sh

echo "rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/"
printf "rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/\n"
rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/
echo "screen -dr cargo_crev_web_8051 -X stuff $'\003'"
printf "screen -dr cargo_crev_web_8051 -X stuff $'\003'\n"
screen -dr cargo_crev_web_8051 -X stuff $'\003'
echo "screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web'"
printf "screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web'\n"
screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web\n'
echo "screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web'"
printf "screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web'\n"
screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web\n'
# don't use sudo here, because .cache is under luciano_bestia user, this user must run the binary
echo "screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web'"
printf "screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web'\n"
screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web\n'
echo "completed"
printf "completed\n"

0 comments on commit bb3b934

Please sign in to comment.