Update crontab

pull/46/head
necro-nemsis 3 years ago
parent f4d9b15559
commit 19729b7d4a

@ -371,21 +371,22 @@ function patch_system_files() {
install_log "Sudoers file already patched" install_log "Sudoers file already patched"
fi fi
# Unmask and enable hostapd.service # Unmask and enable hostapd.service/var/log/lokinet_cron_update.txt
sudo systemctl unmask hostapd.service sudo systemctl unmask hostapd.service
sudo systemctl enable hostapd.service sudo systemctl enable hostapd.service
#crontab daily lokinet updates and log #crontab daily lokinet updates and log
cat > /var/spool/cron/crontabs/root <<-'EOF' cat > /var/spool/cron/crontabs/root <<-'EOF'
check daily for lokinet updates and update as required # check daily for lokinet updates and update as required
logfile=/var/log/lokinet_cron_update.txt # logfile=/var/log/lokinet_cron_update
0 1 * * 1-7 sudo apt-get update && sudo apt-get -y install lokinet >> "$logfile" 2>&1 # 0 1 * * 1-7 sudo apt-get update && sudo apt-get -y install lokinet >> /var/log/lokinet_cron_update 2>&1
0 1 * * 1-7 sudo apt-get -y autoremove >> "$logfile" 2>&1 # 0 1 * * 1-7 sudo apt-get -y autoremove >> /var/log/lokinet_cron_update 2>&1
0 1 * * 1-7 date >> "$logfile" # 0 1 * * 1-7 date >> /var/log/lokinet_cron_update
# restart lokinet on boot
@reboot sleep 60 && /bin/systemctl restart lokinet >> /var/log/lokinet_startup 2>&1
EOF EOF
} }
# Optimize configuration of php-cgi. # Optimize configuration of php-cgi.
function optimize_php() { function optimize_php() {
install_log "Optimize PHP configuration" install_log "Optimize PHP configuration"

Loading…
Cancel
Save