1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00
This commit is contained in:
Éric Gaspar 2022-06-13 15:48:26 +02:00
parent 205ef4bee9
commit 79fd5e7e4a
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 4 deletions

View file

@ -25,7 +25,6 @@ path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
timezone="$(cat /etc/timezone)" timezone="$(cat /etc/timezone)"
secret=$(ynh_string_random --length=32) secret=$(ynh_string_random --length=32)
architecture=$YNH_ARCH
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
@ -112,7 +111,7 @@ ynh_script_progression --message="Setting up backend..." --weight=1
mkdir -p "/opt/vikunja" mkdir -p "/opt/vikunja"
mkdir -p "/opt/vikunja/files" mkdir -p "/opt/vikunja/files"
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture" ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")" back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
cp "$back" "/opt/vikunja/vikunja" cp "$back" "/opt/vikunja/vikunja"

View file

@ -25,7 +25,6 @@ db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
timezone="$(cat /etc/timezone)" timezone="$(cat /etc/timezone)"
secret=$(ynh_string_random --length=32) secret=$(ynh_string_random --length=32)
architecture=$YNH_ARCH
set_motd=$(ynh_app_setting_get --app=$app --key=set_motd) set_motd=$(ynh_app_setting_get --app=$app --key=set_motd)
enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration) enable_registration=$(ynh_app_setting_get --app=$app --key=enable_registration)
@ -109,7 +108,7 @@ then
# Backend # Backend
mkdir -p "/opt/vikunja/files" mkdir -p "/opt/vikunja/files"
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id="$architecture" ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")" back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
cp "$back" "/opt/vikunja/vikunja" cp "$back" "/opt/vikunja/vikunja"
fi fi