Get rid of previous tmp hack about /dev/null for people that went through the very first 11.1.21, because it's causing issue in unpriviledged LXC or similar context

This commit is contained in:
Alexandre Aubin 2023-06-13 12:28:50 +02:00
parent 6278c68586
commit 8242cab735

View file

@ -183,9 +183,6 @@ do_post_regen() {
# NB: x permission for 'others' is important for ssl-cert (and maybe mdns), otherwise slapd will fail to start because can't access the certs # NB: x permission for 'others' is important for ssl-cert (and maybe mdns), otherwise slapd will fail to start because can't access the certs
chmod 755 /etc/yunohost chmod 755 /etc/yunohost
# Stupid fix for a previous commit that changed /dev/null perms because some files in /etc/systemd/system are symlinks >_>
chown 666 /dev/null
find /etc/systemd/system/*.service -type f | xargs -r chown root:root find /etc/systemd/system/*.service -type f | xargs -r chown root:root
find /etc/systemd/system/*.service -type f | xargs -r chmod 0644 find /etc/systemd/system/*.service -type f | xargs -r chmod 0644