mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
fix
This commit is contained in:
parent
3b461aea4c
commit
c4f6c0f9a4
3 changed files with 5 additions and 2 deletions
|
@ -123,7 +123,6 @@ echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-
|
||||||
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
||||||
|
|
||||||
#JWT options
|
#JWT options
|
||||||
echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean true | debconf-set-selections
|
|
||||||
echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -32,6 +32,7 @@ db_user=$db_name
|
||||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
nextclouddomain=$(ynh_app_setting_get --app=$app --key=nextclouddomain)
|
nextclouddomain=$(ynh_app_setting_get --app=$app --key=nextclouddomain)
|
||||||
|
jwt_secret=$(ynh_app_setting_get --app=$app --key=jwt_secret)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE RESTORED
|
# CHECK IF THE APP CAN BE RESTORED
|
||||||
|
@ -89,6 +90,9 @@ echo onlyoffice-documentserver onlyoffice/db-user string $db_user | debconf-set-
|
||||||
echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections
|
||||||
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
||||||
|
|
||||||
|
#JWT options
|
||||||
|
echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL ONLYOFFICE
|
# REINSTALL ONLYOFFICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -106,6 +110,7 @@ ynh_restore_file --origin_path="/etc/onlyoffice"
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE CACHE
|
# RESTORE THE CACHE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/var/lib/onlyoffice/documentserver/App_Data/cache/files"
|
ynh_restore_file --origin_path="/var/lib/onlyoffice/documentserver/App_Data/cache/files"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -126,7 +126,6 @@ echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-
|
||||||
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections
|
||||||
|
|
||||||
#JWT options
|
#JWT options
|
||||||
echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean true | debconf-set-selections
|
|
||||||
echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections
|
echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue