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:
parent
200b1fd4c8
commit
d61f80bbf6
2 changed files with 8 additions and 6 deletions
|
@ -203,16 +203,17 @@ fi
|
||||||
ynh_store_file_checksum --file="$final_path/settings.json"
|
ynh_store_file_checksum --file="$final_path/settings.json"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.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
|
# SECURING FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set files ownership to etherpad
|
# Set files ownership to etherpad
|
||||||
chown -R $app:$app $final_path
|
chmod 750 "$final_path"
|
||||||
chmod o-rwx $final_path
|
chmod o-rwx $final_path
|
||||||
# Restrict access to credentials.json
|
chown -R $app: $final_path
|
||||||
chmod 600 $final_path/credentials.json
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
@ -220,7 +221,7 @@ chmod 600 $final_path/credentials.json
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=4
|
ynh_script_progression --message="Configuring a systemd service..." --weight=4
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --others_var="ynh_node_load_PATH"
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -394,8 +394,9 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set files ownership to Etherpad
|
# Set files ownership to Etherpad
|
||||||
chown -R $app: $final_path
|
chmod 750 "$final_path"
|
||||||
chmod o-rwx $final_path
|
chmod o-rwx $final_path
|
||||||
|
chown -R $app: $final_path
|
||||||
# Restrict access to credentials.json
|
# Restrict access to credentials.json
|
||||||
chmod 600 "$final_path/credentials.json"
|
chmod 600 "$final_path/credentials.json"
|
||||||
chown $app -R /var/log/$app/etherpad.log
|
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
|
# Overwrite the systemd configuration only if it's allowed
|
||||||
if [ $overwrite_systemd -eq 1 ]
|
if [ $overwrite_systemd -eq 1 ]
|
||||||
then
|
then
|
||||||
ynh_add_systemd_config --others_var="ynh_node_load_PATH"
|
ynh_add_systemd_config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue