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

31 lines
1 KiB
Bash
Raw Normal View History

2019-07-02 00:38:57 +02:00
#!/bin/bash
2016-08-30 22:42:56 +02:00
2019-07-02 00:38:57 +02:00
#=================================================
# COMMON VARIABLES
#=================================================
2016-08-30 22:42:56 +02:00
2021-03-22 23:20:17 +01:00
pkg_dependencies="acl"
2020-09-04 22:24:17 +02:00
YNH_PHP_VERSION="7.3"
2018-09-23 15:10:36 +02:00
extra_php_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-dom php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-sqlite3 php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-xml"
2020-10-01 22:19:32 +02:00
2019-07-02 00:38:57 +02:00
#=================================================
# PERSONAL HELPERS
#=================================================
2016-08-30 22:42:56 +02:00
2021-04-17 18:39:02 +02:00
function set_permissions {
chown -R root:$app $final_path
chmod -R g=u,g-w,o-rwx $final_path
chown -R $app:$app $final_path/{data,extensions}
setfacl -n -R -m u:www-data:rx -m d:u:www-data:rx $final_path
}
2019-07-02 00:38:57 +02:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
2017-03-05 17:17:14 +01:00
2019-07-02 00:38:57 +02:00
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================