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
|
# Set permissions on app files
|
||||||
chown -R root: $final_path
|
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
|
if [ -z $final_path/data ]; then
|
||||||
mkdir $final_path/data
|
mkdir $final_path/data
|
||||||
chown -R $app $final_path/data
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check data directory permission
|
||||||
|
chown -R $app: $final_path/data
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue