mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
commit
fcfaecdf8d
8 changed files with 8 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-unstable.zip
|
||||
SOURCE_SUM=4e176ad1c4e44c0a40a2d6f7326ecb735960dd33ed378f11f2f6e40eb38ffa08
|
||||
SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.17.0.zip
|
||||
SOURCE_SUM=2d460109d1300ccc2116e2084669ebb5037d0a168467215b22d331876ec7e576
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=false
|
||||
|
|
|
@ -29,8 +29,6 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
|
|||
# Needed for helper "ynh_add_nginx_config"
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||
password=$(ynh_app_setting_get --app=$app --key=password)
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
db_user=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
|
|
|
@ -102,6 +102,7 @@ chown -R $app:www-data "$final_path"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
mkdir -p "/etc/vikunja"
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
||||
|
||||
|
@ -115,7 +116,6 @@ ynh_script_progression --message="Installing backend..." --weight=15
|
|||
tempdir="$(mktemp -d)"
|
||||
ynh_setup_source --dest_dir=$tempdir --source_id=vikunja
|
||||
ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb
|
||||
|
||||
chmod +x /opt/vikunja/vikunja
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -74,6 +74,7 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6
|
|||
|
||||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_secure_remove --file="/etc/vikunja"
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
|
|
|
@ -106,7 +106,7 @@ chmod +x /opt/vikunja/vikunja
|
|||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_add_config --template="../conf/config.yml" --destination="/opt/vikunja/config.yml"
|
||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
||||
|
||||
#chmod 600 "/etc/vikunja/config.yml"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue