1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00
yeswiki_ynh/scripts/_common.sh

37 lines
1,005 B
Bash
Raw Normal View History

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
2022-07-07 03:08:58 +02:00
pkg_dependencies="php${YNH_PHP_VERSION}-zip"
2020-04-27 11:37:38 +02:00
loginldap_version="2021-03-01-2"
2020-04-16 14:08:38 +02:00
#=================================================
# PERSONAL HELPERS
#=================================================
# 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:www-data $final_path
chmod -R u=rwx,g=rx,o-rwx $final_path
}
2020-04-16 14:08:38 +02:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================