Make sure that restoration script sets correct rights on files
These changes ensure that, no matter if migrating from a online instance or importing some other Zammad-Export, that the filesystem rights on the Zammad-Directory are always correct. We're using fixed user "zammad" here, the Backup-Documentation needs enhancement and will hold a warning for this to ensure, other users don't crash here.
This commit is contained in:
parent
e26db17d75
commit
e6697cdd21
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ function stop_zammad () {
|
||||||
function restore_zammad () {
|
function restore_zammad () {
|
||||||
echo "# Restoring Files"
|
echo "# Restoring Files"
|
||||||
tar -C / --overwrite -xzf ${BACKUP_DIR}/${RESTORE_FILE_DATE}_zammad_files.tar.gz
|
tar -C / --overwrite -xzf ${BACKUP_DIR}/${RESTORE_FILE_DATE}_zammad_files.tar.gz
|
||||||
|
echo "# Ensuring correct file rights ..."
|
||||||
|
chown -R zammad:zammad ${ZAMMAD_DIR}
|
||||||
|
|
||||||
if [ "${DB_ADAPTER}" == "postgresql" ]; then
|
if [ "${DB_ADAPTER}" == "postgresql" ]; then
|
||||||
echo "# Restoring PostgrSQL DB"
|
echo "# Restoring PostgrSQL DB"
|
||||||
|
|
Loading…
Reference in a new issue