mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
run-parts.sh: Fix wrong permissions on /data/database
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
ba7b845c73
commit
fc79b722f2
@ -30,15 +30,16 @@ cleanup()
|
||||
else
|
||||
echo 'WARN: Backup creation failed'
|
||||
fi
|
||||
set +x
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
grep '/data-ro' /etc/mysql/mariadb.conf.d/90-ncp.cnf > /dev/null 2>&1 \
|
||||
&& echo "WARNING: Looks like you have been affected by a critical bug in NCP that can cause data loss. We're trying" \
|
||||
grep '/data-ro' /etc/mysql/mariadb.conf.d/90-ncp.cnf > /dev/null 2>&1 && {
|
||||
echo "WARNING: Looks like you have been affected by a critical bug in NCP that can cause data loss. We're trying" \
|
||||
"to fix this now, but if you encounter any issues, please check" \
|
||||
"https://github.com/nextcloud/nextcloudpi/issues/1577#issuecomment-1260830341"
|
||||
chown -R mysql: /data/database || true
|
||||
}
|
||||
sed -i 's|/data-ro|/data|' "/etc/mysql/mariadb.conf.d/90-ncp.cnf" || true
|
||||
|
||||
trap cleanup SIGTERM
|
||||
@ -87,3 +88,5 @@ done
|
||||
# wait for trap from 'docker stop'
|
||||
echo "Init done"
|
||||
while true; do sleep 0.5; done
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user