@@ -13,14 +13,9 @@ setting_up_container
1313network_check
1414update_os
1515
16- msg_info " Installing Dependencies"
17- $STD apt install -y \
18- apache2 \
19- libapache2-mod-php \
20- php8.2-{pdo,mysql,mbstring,gettext,fileinfo,gd,xml,zip}
21- msg_ok " Installed Dependencies"
22-
16+ PHP_VERSION=" 8.4" PHP_APACHE=" YES" PHP_MODULE=" pdo,mysql,gettext,fileinfo" setup_php
2317setup_mariadb
18+ fetch_and_deploy_gh_release " projectsend" " projectsend/projectsend" " prebuild" " latest" " /opt/projectsend" " projectsend-r*.zip"
2419
2520msg_info " Setting up MariaDB"
2621DB_NAME=projectsend
@@ -37,12 +32,7 @@ $STD mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUS
3732} >> ~/projectsend.creds
3833msg_ok " Set up MariaDB"
3934
40- msg_info " Installing projectsend"
41- RELEASE=$( curl -fsSL https://api.github.com/repos/projectsend/projectsend/releases/latest | grep " tag_name" | awk ' {print substr($2, 3, length($2)-4) }' )
42- cd /opt
43- curl -fsSL " https://github.com/projectsend/projectsend/releases/download/r${RELEASE} /projectsend-r${RELEASE} .zip" -o " projectsend-r${RELEASE} .zip"
44- mkdir projectsend
45- $STD unzip " projectsend-r${RELEASE} .zip" -d projectsend
35+ msg_info " Installing ProjectSend"
4636mv /opt/projectsend/includes/sys.config.sample.php /opt/projectsend/includes/sys.config.php
4737chown -R www-data:www-data /opt/projectsend
4838chmod -R 775 /opt/projectsend
@@ -55,8 +45,7 @@ sed -i -e "s/^\(memory_limit = \).*/\1 256M/" \
5545 -e " s/^\(post_max_size = \).*/\1 256M/" \
5646 -e " s/^\(upload_max_filesize = \).*/\1 256M/" \
5747 -e " s/^\(max_execution_time = \).*/\1 300/" \
58- /etc/php/8.2/apache2/php.ini
59- echo " ${RELEASE} " > /opt/${APPLICATION} _version.txt
48+ /etc/php/8.4/apache2/php.ini
6049msg_ok " Installed projectsend"
6150
6251msg_info " Creating Service"
@@ -84,7 +73,6 @@ motd_ssh
8473customize
8574
8675msg_info " Cleaning up"
87- rm -rf " /opt/projectsend-r${RELEASE} .zip"
8876$STD apt -y autoremove
8977$STD apt -y autoclean
9078$STD apt -y clean
0 commit comments