mirror of https://github.com/tteck/Proxmox.git
Compare commits
6 Commits
a5b3aab72e
...
147d0ac8db
Author | SHA1 | Date |
---|---|---|
|
147d0ac8db | |
|
e880a9d8db | |
|
ccadb0d92e | |
|
eb7491c6c1 | |
|
d806d87cfd | |
|
faad7f25cc |
13
ct/grocy.sh
13
ct/grocy.sh
|
@ -55,13 +55,18 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating ${APP}"
|
|
||||||
php_version=$(php -v | head -n 1 | awk '{print $2}')
|
php_version=$(php -v | head -n 1 | awk '{print $2}')
|
||||||
if [[ ! $php_version == "8.3"* ]]; then
|
if [[ ! $php_version == "8.3"* ]]; then
|
||||||
apt-get update
|
msg_info "Updating PHP"
|
||||||
apt-get install -y php8.3
|
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||||
update-alternatives --set php /usr/bin/php8.3
|
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,fpm,gd,zip,xml}
|
||||||
|
systemctl reload apache2
|
||||||
|
apt autoremove
|
||||||
|
msg_ok "Updated PHP"
|
||||||
fi
|
fi
|
||||||
|
msg_info "Updating ${APP}"
|
||||||
bash /var/www/html/update.sh
|
bash /var/www/html/update.sh
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -20,18 +20,13 @@ $STD apt-get install -y mc
|
||||||
$STD apt-get install -y apt-transport-https
|
$STD apt-get install -y apt-transport-https
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing PHP 8.2"
|
msg_info "Installing PHP8.3"
|
||||||
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
||||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||||
echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list
|
echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y php8.2
|
$STD apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,fpm,gd,zip,xml}
|
||||||
$STD apt-get install -y libapache2-mod-php8.2
|
msg_ok "Installed PHP8.3"
|
||||||
$STD apt-get install -y php8.2-sqlite3
|
|
||||||
$STD apt-get install -y php8.2-gd
|
|
||||||
$STD apt-get install -y php8.2-intl
|
|
||||||
$STD apt-get install -y php8.2-mbstring
|
|
||||||
msg_ok "Installed PHP 8.2"
|
|
||||||
|
|
||||||
msg_info "Installing grocy"
|
msg_info "Installing grocy"
|
||||||
latest=$(curl -s https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
latest=$(curl -s https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
|
|
@ -17,23 +17,23 @@ msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
|
$STD apt-get install -y apt-transport-https
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing PHP"
|
msg_info "Installing PHP8.3"
|
||||||
$STD apt-get install -y php
|
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||||
$STD apt-get install -y php-sqlite3
|
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list
|
||||||
$STD apt-get install -y php-zip
|
$STD apt-get update
|
||||||
$STD apt-get install -y php-xml
|
$STD apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,zip,xml}
|
||||||
$STD apt-get install -y php-intl
|
msg_ok "Installed PHP8.3"
|
||||||
msg_ok "Installed PHP"
|
|
||||||
|
|
||||||
RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
#RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
||||||
|
RELEASE=V2.5.8
|
||||||
msg_info "Installing Heimdall Dashboard ${RELEASE}"
|
msg_info "Installing Heimdall Dashboard ${RELEASE}"
|
||||||
$STD curl --silent -o ${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz"
|
wget -q https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz
|
||||||
$STD tar xvzf ${RELEASE}.tar.gz
|
tar xzf ${RELEASE}.tar.gz
|
||||||
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest |
|
#VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
grep "tag_name" |
|
VER=2.5.8
|
||||||
awk '{print substr($2, 3, length($2)-4) }')
|
|
||||||
rm -rf ${RELEASE}.tar.gz
|
rm -rf ${RELEASE}.tar.gz
|
||||||
mv Heimdall-${VER} /opt/Heimdall
|
mv Heimdall-${VER} /opt/Heimdall
|
||||||
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
||||||
|
@ -55,7 +55,7 @@ TimeoutStopSec=30
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
$STD sudo systemctl enable --now heimdall.service
|
systemctl enable -q --now heimdall.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in New Issue