mirror of
https://github.com/YunoHost-Apps/flood_ynh.git
synced 2024-09-03 18:36:20 +02:00
fix restore
This commit is contained in:
parent
33d6217579
commit
e27b2aa02b
3 changed files with 16 additions and 28 deletions
|
@ -78,6 +78,11 @@ ynh_script_progression --message="Installing dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
tmpdir="$(mktemp -d)"
|
||||||
|
ynh_setup_source --dest_dir="$tmpdir" --source_id=$YNH_ARCH
|
||||||
|
dpkg -i $tmpdir/flood-linux.deb
|
||||||
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -93,7 +98,7 @@ ynh_script_progression --message="Setting up source files..."
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH
|
mkdir -p "$final_path"
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
@ -109,14 +114,6 @@ ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
|
||||||
# INSTALL APP
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Installing app..."
|
|
||||||
|
|
||||||
dpkg -i $final_path/flood-linux.deb
|
|
||||||
ynh_secure_remove --file="$final_path/flood-linux.deb"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DATA DIRECTORY
|
# CREATE DATA DIRECTORY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -31,7 +31,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
|
||||||
scgi_port=$(ynh_app_setting_get --app=$app --key=scgi_port)
|
scgi_port=$(ynh_app_setting_get --app=$app --key=scgi_port)
|
||||||
rt_port=$(ynh_app_setting_get --app=$app --key=rt_port)
|
rt_port=$(ynh_app_setting_get --app=$app --key=rt_port)
|
||||||
|
|
||||||
|
@ -94,15 +93,10 @@ ynh_script_progression --message="Reinstalling dependencies..."
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
#=================================================
|
tmpdir="$(mktemp -d)"
|
||||||
# REINSTALL FLOOD
|
ynh_setup_source --dest_dir="$tmpdir" --source_id=$YNH_ARCH
|
||||||
#=================================================
|
dpkg -i $tmpdir/flood-linux.deb
|
||||||
ynh_script_progression --message="Reinstalling flood..."
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH
|
|
||||||
dpkg -i $final_path/flood-linux.deb
|
|
||||||
ynh_secure_remove --file="$final_path/flood-linux.deb"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# OPEN A PORT
|
# OPEN A PORT
|
||||||
|
|
|
@ -73,7 +73,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH
|
mkdir -p "$final_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -95,16 +95,13 @@ ynh_script_progression --message="Upgrading dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
tmpdir="$(mktemp -d)"
|
||||||
|
ynh_setup_source --dest_dir="$tmpdir" --source_id=$YNH_ARCH
|
||||||
|
dpkg -i $tmpdir/flood-linux.deb
|
||||||
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
|
||||||
# INSTALL APP
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Installing app..."
|
|
||||||
|
|
||||||
dpkg -i $final_path/flood-linux.deb
|
|
||||||
ynh_secure_remove --file="$final_path/flood-linux.deb"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue