1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/teampass_ynh.git synced 2024-09-03 20:26:37 +02:00
This commit is contained in:
ericgaspar 2021-07-11 16:05:55 +02:00
parent b59a5e1d3a
commit ff29d35a03
2 changed files with 2 additions and 24 deletions

View file

@ -7,28 +7,6 @@ YNH_PHP_VERSION="7.3"
# EXPERIMENTAL HELPERS
#=================================================
# Move a directory in yunohost.multimedia, and replace by a symbolic link
#
# usage: ynh_multimedia_movefolder "Source directory" "Destination directory"
#
# | arg: -s, --source_dir= - Source directory - The real directory which contains your medias.
# It will be moved to "Destination directory"
# A symbolic link will replace it.
# | arg: -d, --dest_dir= - Destination directory - The new name and place of the directory, relative to "/home/yunohost.multimedia"
ynh_multimedia_movefolder () {
# Declare an array to define the options of this helper.
declare -Ar args_array=( [s]=source_dir= [d]=dest_dir= )
local source_dir
local dest_dir
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
./yunohost.multimedia-master/script/ynh_media_addfolder.sh --inv --source="$source_dir" --dest="$dest_dir"
}
#=================================================
# Send an email to inform the administrator
#
# usage: ynh_send_readme_to_admin app_message [recipients]

View file

@ -84,8 +84,8 @@ chown -R $app $final_path/{includes,files,upload}
# RESTORE OF THE PHP-FPM CONFIGURATION
#=================================================
ynh_restore_file "/etc/php$phpversion/fpm/pool.d/$app.conf"
ynh_restore_file "/etc/php$phpversion/fpm/conf.d/20-$app.ini"
ynh_restore_file "/etc/php/$phpversion/fpm/pool.d/$app.conf"
#ynh_restore_file "/etc/php$phpversion/fpm/conf.d/20-$app.ini"
#=================================================
# SPECIFIC RESTORE