2020-04-16 14:08:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2020-10-06 13:35:14 +02:00
|
|
|
YNH_PHP_VERSION="7.3"
|
|
|
|
|
2020-04-27 11:37:38 +02:00
|
|
|
# dependencies used by the app
|
2020-10-06 13:35:14 +02:00
|
|
|
extra_php_dependencies="php${YNH_PHP_VERSION}-zip"
|
2020-04-27 11:37:38 +02:00
|
|
|
|
2021-03-01 17:02:55 +01:00
|
|
|
loginldap_version="2021-03-01-2"
|
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2021-11-27 12:48:13 +01:00
|
|
|
# update directory right
|
|
|
|
# | arg: app - The application's name ; default : yeswiki
|
|
|
|
# | arg: final_path - The path of the application's folder
|
|
|
|
# yeswiki_update_dir_rights yeswiki /var/www/yeswiki
|
|
|
|
yeswiki_update_dir_rights() {
|
|
|
|
local app="${1:-yeswiki}"
|
|
|
|
local final_path="${2}"
|
|
|
|
|
|
|
|
chown -R $app:$app $final_path
|
2021-11-27 13:16:47 +01:00
|
|
|
chmod -R u=rwX,g=rX,o=rX $final_path
|
2021-11-27 13:15:34 +01:00
|
|
|
chmod -R g+rwX,o+rwX $final_path/{cache,files}
|
2021-11-27 12:48:13 +01:00
|
|
|
}
|
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|