Browse Source

fix action

pull/325/head
Kay0u 6 years ago
parent
commit
38b66a8530
No known key found for this signature in database GPG Key ID: AE1DCADB6415A156
  1. 8
      scripts/actions/add_multimedia_directories

8
scripts/actions/add_multimedia_directories

@ -15,6 +15,8 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# CHECK IF ARGUMENTS ARE CORRECT
#=================================================
@ -23,6 +25,12 @@ app=$YNH_APP_INSTANCE_NAME
# 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
# Create the external storage for the given folders and enable sharing
create_external_storage() {

Loading…
Cancel
Save