1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Fix .config directory handling in upgrade

This commit is contained in:
tituspijean 2023-08-28 12:18:33 +02:00 committed by GitHub
parent d90ac95cdb
commit 7caa81ab45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,10 @@ if [ -z "$db_name" ]; then
fi
# Make sure the .config directory belongs to $app:$app
if [[ $(stat -c "%U:%G" $install_dir/.config) != "$app:$app" ]]; then
if [[ ! -d "$install_dir/.config" ]]; then
mkdir $install_dir/.config
chown $app:$app $install_dir/.config
elif [[ $(stat -c "%U:%G" $install_dir/.config) != "$app:$app" ]]; then
chown -R $app:$app $install_dir/.config
fi