mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
cleaning
This commit is contained in:
parent
14c954c1e7
commit
6aa02fe38b
3 changed files with 8 additions and 5 deletions
|
@ -18,8 +18,11 @@ code = "https://framagit.org/hubzilla/core"
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|
||||||
ldap = true
|
ldap = true
|
||||||
|
|
||||||
sso = true
|
sso = true
|
||||||
|
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "200M"
|
ram.build = "200M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
@ -60,7 +63,7 @@ ram.runtime = "50M"
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "php8.2-curl, php8.2-gd, php8.2-mysql, php8.2-pgsql, php8.2-mbstring, php8.2-xml, php8.2-zip, php8.2-cli, php8.2-imagick php8.2-gmp"
|
packages = "php8.2-curl, php8.2-gd, php8.2-mysql, php8.2-pgsql, php8.2-mbstring, php8.2-xml, php8.2-zip, php8.2-cli, php8.2-imagick, php8.2-gmp"
|
||||||
|
|
||||||
packages_from_raw_bash = """
|
packages_from_raw_bash = """
|
||||||
if [[ "$database" == "mysql" ]]; then
|
if [[ "$database" == "mysql" ]]; then
|
||||||
|
|
|
@ -67,7 +67,7 @@ ynh_setup_source --dest_dir="$install_dir/addon" --source_id="addons"
|
||||||
|
|
||||||
touch "$install_dir/php.log"
|
touch "$install_dir/php.log"
|
||||||
mkdir -p "$install_dir/store"
|
mkdir -p "$install_dir/store"
|
||||||
mkdir -p "$install_dir/cache/smarty3"
|
mkdir -p "$install_dir/cache/smarty3"
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod -R 775 $install_dir/store $install_dir/cache
|
chmod -R 775 $install_dir/store $install_dir/cache
|
||||||
|
@ -90,7 +90,7 @@ ynh_use_logrotate "$install_dir/php.log"
|
||||||
ynh_add_fail2ban_config --logpath="$install_dir/php.log" --failregex="^.*auth\.php.*failed login attempt.*from IP <HOST>.*$" --max_retry="5"
|
ynh_add_fail2ban_config --logpath="$install_dir/php.log" --failregex="^.*auth\.php.*failed login attempt.*from IP <HOST>.*$" --max_retry="5"
|
||||||
|
|
||||||
# Set up cron job
|
# Set up cron job
|
||||||
ynh_add_config --template="../conf/poller-cron" --destination="/etc/cron.d/$app"
|
ynh_add_config --template="poller-cron" --destination="/etc/cron.d/$app"
|
||||||
chown root: "/etc/cron.d/$app"
|
chown root: "/etc/cron.d/$app"
|
||||||
chmod 644 "/etc/cron.d/$app"
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/htconfig.sample.php" --destination="$install_dir/.htconfig.php"
|
ynh_add_config --template="htconfig.sample.php" --destination="$install_dir/.htconfig.php"
|
||||||
|
|
||||||
ynh_store_file_checksum --file=$install_dir/.htconfig.php
|
ynh_store_file_checksum --file=$install_dir/.htconfig.php
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Upgrading cron job..." --weight=1
|
ynh_script_progression --message="Upgrading cron job..." --weight=1
|
||||||
|
|
||||||
# Set up cron job
|
# Set up cron job
|
||||||
ynh_add_config --template="../conf/poller-cron" --destination="/etc/cron.d/$app"
|
ynh_add_config --template="poller-cron" --destination="/etc/cron.d/$app"
|
||||||
chown root: "/etc/cron.d/$app"
|
chown root: "/etc/cron.d/$app"
|
||||||
chmod 644 "/etc/cron.d/$app"
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue