diff --git a/scripts/backup b/scripts/backup index f8e82aa..a032119 100755 --- a/scripts/backup +++ b/scripts/backup @@ -27,10 +27,6 @@ ynh_backup --src_path="$install_dir" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/install b/scripts/install index 6ea2141..aa80988 100755 --- a/scripts/install +++ b/scripts/install @@ -18,7 +18,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir" -chmod +x $install_dir/redlib && chown $app:$app $install_dir/redlib +chmod +x $install_dir/redlib #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 980d5f5..8f15010 100755 --- a/scripts/restore +++ b/scripts/restore @@ -6,7 +6,6 @@ # IMPORT GENERIC HELPERS #================================================= -# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/upgrade b/scripts/upgrade index fba01c0..df2d3b3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,7 +24,7 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" --keep=".env" +ynh_setup_source --dest_dir="$install_dir" --keep="redlib.conf" --full_replace=1 chown -R $app:www-data "$install_dir" chmod +x $install_dir/redlib @@ -45,12 +45,12 @@ yunohost service add $app --description="Alternative to Reddit" --log="/var/log/ #================================================= # UPDATE A CONFIG FILE #================================================= -#ynh_script_progression --message="Updating a configuration file..." --weight=1 +ynh_script_progression --message="Updating a configuration file..." --weight=1 -# ynh_add_config --template=".env" --destination="$install_dir/.env" +ynh_add_config --template="redlib.conf" --destination="$install_dir/redlib.conf" -# chmod 400 "$install_dir/.env" -# chown $app:$app "$install_dir/.env" +chmod 400 "$install_dir/redlib.conf" +chown $app:$app "$install_dir/redlib.conf" #================================================= # START SYSTEMD SERVICE