2020-04-16 14:08:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2022-09-06 21:35:31 +02:00
|
|
|
YNH_PHP_VERSION="7.4"
|
2020-10-06 13:35:14 +02:00
|
|
|
|
2020-04-27 11:37:38 +02:00
|
|
|
# dependencies used by the app
|
2022-07-07 03:08:58 +02:00
|
|
|
pkg_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}"
|
|
|
|
|
2022-01-24 02:52:49 +01:00
|
|
|
chown -R $app:www-data $final_path
|
|
|
|
chmod -R u=rwx,g=rx,o-rwx $final_path
|
2021-11-27 12:48:13 +01:00
|
|
|
}
|
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|