mirror of
https://github.com/YunoHost-Apps/writefreely_ynh.git
synced 2024-09-03 20:36:02 +02:00
Update install
This commit is contained in:
parent
d54fa52e33
commit
7e5658dae6
1 changed files with 10 additions and 10 deletions
|
@ -128,6 +128,16 @@ ynh_script_progression --message="Configuring a systemd service..."
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a config file..."
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/config.ini" --destination="$final_path/config.ini"
|
||||||
|
|
||||||
|
chmod 400 "$final_path/config.ini"
|
||||||
|
chown $app:$app "$final_path/config.ini"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MAKE SETUP
|
# MAKE SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -139,16 +149,6 @@ pushd $final_path
|
||||||
sudo -u $app ./writefreely --create-admin "$admin":"$password"
|
sudo -u $app ./writefreely --create-admin "$admin":"$password"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ADD A CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Adding a config file..."
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.ini" --destination="$final_path/config.ini"
|
|
||||||
|
|
||||||
chmod 400 "$final_path/config.ini"
|
|
||||||
chown $app:$app "$final_path/config.ini"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue