mirror of
https://github.com/YunoHost-Apps/pydio_ynh.git
synced 2024-09-03 20:16:05 +02:00
Fix working directory envvar
This commit is contained in:
parent
a402005fb6
commit
7bd1ae57da
2 changed files with 5 additions and 2 deletions
|
@ -24,7 +24,7 @@ SuccessExitStatus=0
|
|||
|
||||
# Add environment variables
|
||||
Environment=CELLS_ENABLE_METRICS=false
|
||||
Environment=CELLS_WORKING_DIR=__INSTALL_DIR__
|
||||
# Environment=CELLS_WORKING_DIR=__INSTALL_DIR__
|
||||
Environment=CELLS_DATA_DIR=__DATA_DIR__
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -32,7 +32,10 @@ ynh_add_config --template="../conf/install-conf.yml" --destination="$install_dir
|
|||
ynh_delete_file_checksum --file="$install_dir/install-conf.yml"
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_exec_as "$app" env CELLS_WORKING_DIR="$install_dir" ./cells configure --cli --yaml "./install-conf.yml"
|
||||
# See https://pydio.com/fr/docs/cells/v4/working-directories
|
||||
ynh_exec_as "$app" env \
|
||||
CELLS_DATA_DIR="$data_dir" \
|
||||
./cells configure --cli --yaml "./install-conf.yml"
|
||||
popd
|
||||
ynh_secure_remove --file="$install_dir/install-conf.yml"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue