@@ -13,13 +13,7 @@ setting_up_container
1313network_check
1414update_os
1515
16- msg_info " Installing Dependencies"
17- $STD apt-get install -y \
18- apache2 \
19- php-{curl,dom,json,ctype,pgsql,gmp,mbstring,iconv,zip} \
20- libapache2-mod-php
21- msg_ok " Installed Dependencies"
22-
16+ PHP_VERSION=" 8.2" PHP_MODULE=" dom,json,ctype,pgsql,gmp,iconv" PHP_APACHE=" YES" setup_php
2317PG_VERSION=" 16" setup_postgresql
2418
2519msg_info " Setting up PostgreSQL"
@@ -36,17 +30,14 @@ $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMP
3630} >> ~/freshrss.creds
3731msg_ok " Set up PostgreSQL"
3832
39- msg_info " Installing FreshRSS"
40- RELEASE=$( curl -fsSL https://api.github.com/repos/FreshRSS/FreshRSS/releases/latest | grep " tag_name" | awk ' {print substr($2, 2, length($2)-3) }' )
41- cd /opt
42- curl -fsSL " https://github.com/FreshRSS/FreshRSS/archive/refs/tags/${RELEASE} .zip" -o " ${RELEASE} .zip"
43- $STD unzip " ${RELEASE} .zip"
44- mv " /opt/FreshRSS-${RELEASE} " /opt/freshrss
33+ fetch_and_deploy_gh_release " freshrss" " FreshRSS/FreshRSS"
34+
35+ msg_info " Configuring FreshRSS"
4536cd /opt/freshrss
4637chown -R www-data:www-data /opt/freshrss
4738chmod -R g+rX /opt/freshrss
4839chmod -R g+w /opt/freshrss/data/
49- msg_ok " Installed FreshRSS"
40+ msg_ok " Configured FreshRSS"
5041
5142msg_info " Setting up cron job for feed refresh"
5243cat << EOF >/etc/cron.d/freshrss-actualize
@@ -83,7 +74,6 @@ motd_ssh
8374customize
8475
8576msg_info " Cleaning up"
86- rm -rf " /opt/${RELEASE} .zip"
8777$STD apt-get -y autoremove
8878$STD apt-get -y autoclean
8979msg_ok " Cleaned"
0 commit comments