Fixed CTs: gitea,nextcloud,transfersh and updated the AlpinePHPTool

CT: gitea
  Fixed broken curl command for downloading gitea

CT: nextcloud
  Forced PHP Version to 8.3 using update AlpinePHPTool

CT: transfersh
  Fixed custom theme by downloading the release tar.gz instead of cloneing the repo,
  it is now also added to the update script

Script: AlpinePHPTool
  Added ability to specify a PHP Version
This commit is contained in:
2025-01-16 01:30:01 +01:00
parent a647ab711b
commit 5c663faa0d
8 changed files with 58 additions and 16 deletions

View File

@@ -34,10 +34,11 @@ show_help () {
Usage: $self [-dfpuh] <Config name>
Options:
-d, Distrobuilder: Install everything and use Local configs (non interactive)
-f, Fresh: Install everything and fetch config
-p, Purge: Remove all PHP packlages and back configuration (handy for distro release upgrades)
-u, Upgrade: Run both Purge and Install steps
-d, Distrobuilder: Install everything and use Local configs (non interactive)
-f, Fresh: Install everything and fetch config
-p, Purge: Remove all PHP packlages and back configuration (handy for distro release upgrades)
-u, Upgrade: Run both Purge and Install steps
-v <PhpVer>, Set PHPVersion: specify the PHP version version (example 84 for 8.4)
Cnfigurations:
$Configurations
@@ -55,13 +56,14 @@ echo_exit (){
exit 1
}
#Arugment/optin handeling
while getopts 'dfpuh' opt; do
#Arugment/option handeling
while getopts 'dfpuhv:' opt; do
case $opt in
d) set_mode distrobuilder;;
f) set_mode fresh ;;
p) set_mode purge ;;
u) set_mode upgrade ;;
v) NewPHPVer="${OPTARG}" ;;
h) show_help
exit ;;
*) show_help
@@ -167,7 +169,7 @@ case $mode in
;;
upgrade)
#Set config location
configStore=/opt/Setup/Configs
configStore=/tmp
fetch_Config
service nginx stop
run_Purge