1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Fix rights

This commit is contained in:
yalh76 2021-04-11 22:11:16 +02:00
parent 089e811703
commit 96a200c7a6
3 changed files with 19 additions and 19 deletions

View file

@ -89,7 +89,7 @@ popd
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -115,14 +115,6 @@ pushd $final_path
venv/bin/pip install 'websockets>=6.0,<7.0' venv/bin/pip install 'websockets>=6.0,<7.0'
popd popd
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Configuring a systemd service..."
# Create a dedicated systemd config
ynh_add_systemd_config
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
@ -133,6 +125,14 @@ ynh_add_config --template="yunorunner.config.py" --destination="$final_path/conf
chmod 400 "$final_path/config.py" chmod 400 "$final_path/config.py"
chown $app:$app "$final_path/config.py" chown $app:$app "$final_path/config.py"
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Configuring a systemd service..."
# Create a dedicated systemd config
ynh_add_systemd_config
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -73,7 +73,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION

View file

@ -121,7 +121,7 @@ fi
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -154,14 +154,6 @@ pushd $final_path
venv/bin/pip install 'websockets>=6.0,<7.0' venv/bin/pip install 'websockets>=6.0,<7.0'
popd popd
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..."
# Create a dedicated systemd config
ynh_add_systemd_config
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
@ -172,6 +164,14 @@ ynh_add_config --template="yunorunner.config.py" --destination="$final_path/conf
chmod 400 "$final_path/config.py" chmod 400 "$final_path/config.py"
chown $app:$app "$final_path/config.py" chown $app:$app "$final_path/config.py"
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..."
# Create a dedicated systemd config
ynh_add_systemd_config
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================