1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

fix action

This commit is contained in:
Kay0u 2020-08-14 13:11:14 +02:00
parent 41dee40b09
commit 38b66a8530
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -15,6 +15,8 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================
# CHECK IF ARGUMENTS ARE CORRECT # CHECK IF ARGUMENTS ARE CORRECT
#================================================= #=================================================
@ -23,6 +25,12 @@ app=$YNH_APP_INSTANCE_NAME
# DEFINE FUNCTION # DEFINE FUNCTION
#================================================= #=================================================
# Define a function to execute commands with `occ`
exec_occ() {
(cd "$final_path" && exec_as "$app" \
php$YNH_PHP_VERSION occ --no-interaction --no-ansi "$@")
}
# Define a function to add an external storage # Define a function to add an external storage
# Create the external storage for the given folders and enable sharing # Create the external storage for the given folders and enable sharing
create_external_storage() { create_external_storage() {