mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
cleaning
This commit is contained in:
parent
3a00c7a4f3
commit
827305be44
3 changed files with 0 additions and 6 deletions
|
@ -39,7 +39,6 @@ ynh_config_add --template="config.yml" --destination="$install_dir/config.yml"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
# Start a systemd service
|
|
||||||
ynh_systemctl --service=$app --action=start --log_path=systemd
|
ynh_systemctl --service=$app --action=start --log_path=systemd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -40,7 +40,6 @@ ynh_app_setting_set --key=maxitemsperpage --value=$maxitemsperpage
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Setting up source files..."
|
ynh_script_progression "Setting up source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
executable="$(find $install_dir -name "vikunja-*" \! -name "*.sha256")"
|
executable="$(find $install_dir -name "vikunja-*" \! -name "*.sha256")"
|
||||||
mv "$executable" "$install_dir/vikunja"
|
mv "$executable" "$install_dir/vikunja"
|
||||||
|
@ -70,7 +69,6 @@ yunohost service add $app --description="Self-hosted To-Do list application" --l
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
# Start a systemd service
|
|
||||||
ynh_systemctl --service="$app" --action=start --log_path=systemd #--wait_until="server started on"
|
ynh_systemctl --service="$app" --action=start --log_path=systemd #--wait_until="server started on"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -10,19 +10,16 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Removing system configurations related to $app..."
|
ynh_script_progression "Removing system configurations related to $app..."
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
|
||||||
if ynh_hide_warnings yunohost service status $app >/dev/null
|
if ynh_hide_warnings yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
ynh_script_progression "Removing $app service..."
|
ynh_script_progression "Removing $app service..."
|
||||||
yunohost service remove $app
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
|
||||||
ynh_config_remove_systemd
|
ynh_config_remove_systemd
|
||||||
|
|
||||||
ynh_redis_remove_db "$redis_db"
|
ynh_redis_remove_db "$redis_db"
|
||||||
|
|
||||||
# Remove the dedicated NGINX config
|
|
||||||
ynh_config_remove_nginx
|
ynh_config_remove_nginx
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue