1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00

Merge pull request #1 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2021-08-05 23:01:40 +02:00 committed by GitHub
commit fcfaecdf8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-unstable.zip SOURCE_URL=https://dl.vikunja.io/frontend/vikunja-frontend-0.17.0.zip
SOURCE_SUM=4e176ad1c4e44c0a40a2d6f7326ecb735960dd33ed378f11f2f6e40eb38ffa08 SOURCE_SUM=2d460109d1300ccc2116e2084669ebb5037d0a168467215b22d331876ec7e576
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=false SOURCE_IN_SUBDIR=false

View file

@ -29,8 +29,6 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
# Needed for helper "ynh_add_nginx_config" # Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port) 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_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)

View file

@ -102,6 +102,7 @@ chown -R $app:www-data "$final_path"
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
mkdir -p "/etc/vikunja"
redis_db=$(ynh_redis_get_free_db) redis_db=$(ynh_redis_get_free_db)
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml" 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)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=vikunja ynh_setup_source --dest_dir=$tempdir --source_id=vikunja
ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb
chmod +x /opt/vikunja/vikunja chmod +x /opt/vikunja/vikunja
#================================================= #=================================================

View file

@ -74,6 +74,7 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
ynh_secure_remove --file="/etc/vikunja"
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION

View file

@ -106,7 +106,7 @@ chmod +x /opt/vikunja/vikunja
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
redis_db=$(ynh_redis_get_free_db) 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" #chmod 600 "/etc/vikunja/config.yml"