mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
Fix
This commit is contained in:
parent
205ef4bee9
commit
79fd5e7e4a
2 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue