2020-04-16 14:08:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
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
|
2023-06-14 10:41:57 +02:00
|
|
|
# | arg: install_dir - The path of the application's folder
|
2021-11-27 12:48:13 +01:00
|
|
|
# yeswiki_update_dir_rights yeswiki /var/www/yeswiki
|
|
|
|
yeswiki_update_dir_rights() {
|
|
|
|
local app="${1:-yeswiki}"
|
2023-06-14 10:41:57 +02:00
|
|
|
local install_dir="${2}"
|
2021-11-27 12:48:13 +01:00
|
|
|
|
2023-06-14 10:41:57 +02:00
|
|
|
chown -R $app:www-data $install_dir
|
|
|
|
chmod -R u=rwx,g=rx,o-rwx $install_dir
|
2021-11-27 12:48:13 +01:00
|
|
|
}
|
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|