Ubuntu 24.04
* update docker to 26.0.1 * cloudron-syslog needs to have correct perms for fifo socket
This commit is contained in:
+6
-4
@@ -110,6 +110,7 @@ usermod -a -G adm ${USER}
|
||||
|
||||
log "Setting up unbound"
|
||||
cp -f "${script_dir}/start/unbound.conf" /etc/unbound/unbound.conf.d/cloudron-network.conf
|
||||
rm -f /etc/unbound/unbound.conf.d/remote-control.conf # on ubuntu 24
|
||||
# update the root anchor after a out-of-disk-space situation (see #269)
|
||||
# it returns 1 even on fail, it's not clear - https://unbound.docs.nlnetlabs.nl/en/latest/manpages/unbound-anchor.html#exit-code
|
||||
unbound-anchor -v -a /var/lib/unbound/root.key || log "unbound-anchor failed, but it probably worked"
|
||||
@@ -117,7 +118,6 @@ unbound-anchor -v -a /var/lib/unbound/root.key || log "unbound-anchor failed, bu
|
||||
log "Adding systemd services"
|
||||
cp -r "${script_dir}/start/systemd/." /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now cloudron-syslog
|
||||
systemctl enable unbound
|
||||
systemctl enable box
|
||||
systemctl enable cloudron-firewall
|
||||
@@ -132,9 +132,6 @@ systemctl enable --now cron
|
||||
# ensure unbound runs
|
||||
systemctl restart unbound
|
||||
|
||||
# ensure cloudron-syslog runs
|
||||
systemctl restart cloudron-syslog
|
||||
|
||||
log "Configuring sudoers"
|
||||
rm -f /etc/sudoers.d/${USER} /etc/sudoers.d/cloudron
|
||||
cp "${script_dir}/start/sudoers" /etc/sudoers.d/cloudron
|
||||
@@ -246,6 +243,11 @@ chown "${USER}:${USER}" -R "${BOX_DATA_DIR}"
|
||||
# do not chown the boxdata/mail directory entirely; dovecot gets upset
|
||||
chown "${USER}:${USER}" "${MAIL_DATA_DIR}"
|
||||
|
||||
# this require logs dir to have correct permissions
|
||||
log "Starting cloudron-syslog"
|
||||
systemctl enable cloudron-syslog
|
||||
systemctl start cloudron-syslog
|
||||
|
||||
log "Starting Cloudron"
|
||||
systemctl start box
|
||||
|
||||
|
||||
Reference in New Issue
Block a user