1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rss-bridge_ynh.git synced 2024-09-03 20:25:51 +02:00
rss-bridge_ynh/scripts/install

56 lines
1.8 KiB
Text
Raw Normal View History

2017-04-26 19:01:53 +02:00
#!/bin/bash
#=================================================
# GENERIC START
2017-04-26 19:01:53 +02:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
2023-03-19 15:43:11 +01:00
ynh_setup_source --dest_dir="$install_dir"
2023-03-19 15:43:11 +01:00
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
2021-06-27 20:02:50 +02:00
2017-04-26 19:01:53 +02:00
#=================================================
# PHP-FPM CONFIGURATION
2017-04-26 19:01:53 +02:00
#=================================================
2020-10-04 17:09:09 +02:00
ynh_script_progression --message="Configuring PHP-FPM..." --weight=3
2017-04-26 19:01:53 +02:00
2020-10-04 17:09:09 +02:00
# Create a dedicated PHP-FPM config
2021-12-11 16:21:22 +01:00
ynh_add_fpm_config --usage=low --footprint=low
2017-04-26 19:01:53 +02:00
2022-06-29 00:04:51 +02:00
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# SPECIFIC SETUP
#=================================================
2022-06-29 00:04:51 +02:00
# CONFIGURE RSS-BRIDGE
#=================================================
2020-10-04 17:09:09 +02:00
ynh_script_progression --message="Configuring RSS-Bridge..." --weight=1
2021-02-26 08:57:55 +01:00
2017-04-26 19:01:53 +02:00
# Enable every bridge
2023-03-19 15:43:11 +01:00
for i in $install_dir/bridges/*.php ; do
echo $(basename $i) | sed "s|Bridge.php$||g" | tee -a $install_dir/whitelist.txt
2017-04-26 19:01:53 +02:00
done
#=================================================
# END OF SCRIPT
#=================================================
2022-06-29 00:04:51 +02:00
ynh_script_progression --message="Installation of $app completed" --last