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:
parent
d90ac95cdb
commit
7caa81ab45
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue