mirror of
https://github.com/YunoHost-Apps/gotify_ynh.git
synced 2024-09-03 20:36:26 +02:00
fix data directory permission after upgrade
This commit is contained in:
parent
cf2763b36e
commit
0559ed4ad7
1 changed files with 4 additions and 2 deletions
|
@ -134,12 +134,14 @@ ynh_add_systemd_config
|
|||
# Set permissions on app files
|
||||
chown -R root: $final_path
|
||||
|
||||
# If data directory doesn't exists, create it and setup permissions
|
||||
# If data directory doesn't exists
|
||||
if [ -z $final_path/data ]; then
|
||||
mkdir $final_path/data
|
||||
chown -R $app $final_path/data
|
||||
fi
|
||||
|
||||
# check data directory permission
|
||||
chown -R $app: $final_path/data
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue