mirror of
https://github.com/YunoHost-Apps/converse_ynh.git
synced 2024-09-03 18:25:53 +02:00
Cleaning
This commit is contained in:
parent
451f02ca49
commit
f51fc549ab
3 changed files with 0 additions and 8 deletions
|
@ -18,7 +18,6 @@ maindomain=$(yunohost domain main-domain --output-as plain)
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Storing installation settings..." --weight=2
|
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=maindomain --value=$maindomain
|
ynh_app_setting_set --app=$app --key=maindomain --value=$maindomain
|
||||||
|
|
||||||
|
@ -33,8 +32,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
mkdir -p $install_dir && cp -a ../sources/* $install_dir
|
mkdir -p $install_dir && cp -a ../sources/* $install_dir
|
||||||
ynh_add_config --template="../sources/index.html" --destination="$install_dir/index.html"
|
ynh_add_config --template="../sources/index.html" --destination="$install_dir/index.html"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -23,8 +23,6 @@ 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 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -19,7 +19,6 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
|
|
||||||
# If maindomain doesn't exist, create it
|
# If maindomain doesn't exist, create it
|
||||||
if [ -z "${maindomain:-}" ]; then
|
if [ -z "${maindomain:-}" ]; then
|
||||||
maindomain=$(yunohost domain main-domain --output-as plain)
|
maindomain=$(yunohost domain main-domain --output-as plain)
|
||||||
|
@ -42,8 +41,6 @@ then
|
||||||
ynh_add_config --template="../sources/index.html" --destination="$install_dir/index.html"
|
ynh_add_config --template="../sources/index.html" --destination="$install_dir/index.html"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue