From c19fae358a6c1896d81c8d093f75bac2656bf91b Mon Sep 17 00:00:00 2001 From: "gitlab.com/pepa65" Date: Mon, 8 May 2023 20:41:42 +0700 Subject: [PATCH] Documentation for resume after reboot --- README.md | 1 + init | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e93fa7..a8f3c12 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ `accounts` (usernames, emails and bcrypt-password-hashes) and `countdown` (if any countdown-files can be used). * Make a crontab-entry: "* * * * * $repopath/encode" (replace `$repopath`!). +* Make a crontab-entry: "@reboot $repopath/restart" (replace `$repopath`!). * Install the `mailer` binary by downloading it from the repo at https://https://github.com/pepa65/mailer/releases/latest and moving it to `/usr/local/bin` and make it executable: `chmod +x /usr/local/bin/mailer`. diff --git a/init b/init index fc3fb16..ce68a03 100755 --- a/init +++ b/init @@ -12,7 +12,7 @@ sed -i 's/upload_max_filesize = .*/upload_max_filesize = 10G/' /etc/php8/php.ini sed -i 's/post_max_size = .*/post_max_size = 10G/' /etc/php8/php.ini crond -line='SHELL=/bin/bash\n\n# Every minute\n* * * * * /var/www/encode\n\n# Streams' +line='SHELL=/bin/bash\n\n@reboot /var/www/restart\n\n# Every minute\n* * * * * /var/www/encode\n\n# Streams' echo -e "$line" |crontab - sed -i "s/%sslmail%/$sslmail/" /root/Caddyfile