Files
alpine-server-setup/installation/basic.sh
2025-08-20 17:11:32 +02:00

17 lines
306 B
Bash

#!/bin/sh
echo "Basic setup"
# Enable community repo
sed -i 's|^#\(http.*/community\)$|\1|' /etc/apk/repositories
apk update
# Cron jobs
rc-update add crond
cat << EOF > /etc/periodic/daily/chrony
#!/bin/sh
chronyc makestep
EOF
# Allow local.d services
rc-update add local default
rc-service local start