Fix working directory envvar

This commit is contained in:
Salamandar 2024-01-28 18:11:34 +01:00
parent a402005fb6
commit 7bd1ae57da
2 changed files with 5 additions and 2 deletions

View file

@ -24,7 +24,7 @@ SuccessExitStatus=0
# Add environment variables # Add environment variables
Environment=CELLS_ENABLE_METRICS=false Environment=CELLS_ENABLE_METRICS=false
Environment=CELLS_WORKING_DIR=__INSTALL_DIR__ # Environment=CELLS_WORKING_DIR=__INSTALL_DIR__
Environment=CELLS_DATA_DIR=__DATA_DIR__ Environment=CELLS_DATA_DIR=__DATA_DIR__
[Install] [Install]

View file

@ -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" ynh_delete_file_checksum --file="$install_dir/install-conf.yml"
pushd "$install_dir" 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 popd
ynh_secure_remove --file="$install_dir/install-conf.yml" ynh_secure_remove --file="$install_dir/install-conf.yml"