Documentation for resume after reboot

This commit is contained in:
gitlab.com/pepa65 2023-05-08 20:41:42 +07:00
parent cc37a1b89a
commit c19fae358a
2 changed files with 2 additions and 1 deletions

View File

@ -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`.

2
init
View File

@ -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