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

Remove other_var

This commit is contained in:
ericgaspar 2021-06-10 17:07:33 +02:00
parent 200b1fd4c8
commit d61f80bbf6
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 8 additions and 6 deletions

View file

@ -203,16 +203,17 @@ fi
ynh_store_file_checksum --file="$final_path/settings.json"
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
# Restrict access to credentials.json
chmod 600 $final_path/credentials.json
#=================================================
# SECURING FILES AND DIRECTORIES
#=================================================
# Set files ownership to etherpad
chown -R $app:$app $final_path
chmod 750 "$final_path"
chmod o-rwx $final_path
# Restrict access to credentials.json
chmod 600 $final_path/credentials.json
chown -R $app: $final_path
#=================================================
# SETUP SYSTEMD
@ -220,7 +221,7 @@ chmod 600 $final_path/credentials.json
ynh_script_progression --message="Configuring a systemd service..." --weight=4
# Create a dedicated systemd config
ynh_add_systemd_config --others_var="ynh_node_load_PATH"
ynh_add_systemd_config
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL

View file

@ -394,8 +394,9 @@ fi
#=================================================
# Set files ownership to Etherpad
chown -R $app: $final_path
chmod 750 "$final_path"
chmod o-rwx $final_path
chown -R $app: $final_path
# Restrict access to credentials.json
chmod 600 "$final_path/credentials.json"
chown $app -R /var/log/$app/etherpad.log
@ -430,7 +431,7 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
# Overwrite the systemd configuration only if it's allowed
if [ $overwrite_systemd -eq 1 ]
then
ynh_add_systemd_config --others_var="ynh_node_load_PATH"
ynh_add_systemd_config
fi
#=================================================