mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
apply Tagadda suggestions
This commit is contained in:
parent
de0290f0d8
commit
b9dec4e273
6 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,7 @@ PartOf=__APP__.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=__APP__
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/api
|
WorkingDirectory=__INSTALL_DIR__/api
|
||||||
EnvironmentFile=__INSTALL_DIR__/config/.env
|
EnvironmentFile=__INSTALL_DIR__/config/.env
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ PartOf=__APP__.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=__APP__
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/api
|
WorkingDirectory=__INSTALL_DIR__/api
|
||||||
EnvironmentFile=__INSTALL_DIR__/config/.env
|
EnvironmentFile=__INSTALL_DIR__/config/.env
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ PartOf=__APP__.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=__APP__
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/api
|
WorkingDirectory=__INSTALL_DIR__/api
|
||||||
Environment="CELERYD_CONCURRENCY=0"
|
Environment="CELERYD_CONCURRENCY=0"
|
||||||
EnvironmentFile=__INSTALL_DIR__/config/.env
|
EnvironmentFile=__INSTALL_DIR__/config/.env
|
||||||
|
|
|
@ -28,7 +28,7 @@ mkdir -p $install_dir/config
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -18,7 +18,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
||||||
ynh_restore_file --origin_path="$install_dir"
|
ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE DATA DIRECTORY
|
# RESTORE THE DATA DIRECTORY
|
||||||
|
@ -32,7 +32,7 @@ mkdir -p $data_dir/{static,media,music}
|
||||||
|
|
||||||
chmod 750 "$data_dir/"
|
chmod 750 "$data_dir/"
|
||||||
chmod -R o-rwx "$data_dir/"
|
chmod -R o-rwx "$data_dir/"
|
||||||
chown -R $app:www-data "$data_dir/"
|
chown -R $app:$app "$data_dir/"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
|
|
|
@ -45,7 +45,7 @@ fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Reference in a new issue