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:
parent
41dee40b09
commit
38b66a8530
1 changed files with 8 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue