mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "147d0ac8db7ac4db73f468f21866c610578a0751" and "a5b3aab72e466e7ec56bd100445777c5b8c54c87" have entirely different histories.
147d0ac8db
...
a5b3aab72e
13
ct/grocy.sh
13
ct/grocy.sh
|
@ -55,18 +55,13 @@ 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
|
||||||
msg_info "Updating PHP"
|
apt-get update
|
||||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
apt-get install -y 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
|
update-alternatives --set php /usr/bin/php8.3
|
||||||
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,13 +20,18 @@ $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 PHP8.3"
|
msg_info "Installing PHP 8.2"
|
||||||
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.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,fpm,gd,zip,xml}
|
$STD apt-get install -y php8.2
|
||||||
msg_ok "Installed PHP8.3"
|
$STD apt-get install -y libapache2-mod-php8.2
|
||||||
|
$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 PHP8.3"
|
msg_info "Installing PHP"
|
||||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
$STD apt-get install -y php
|
||||||
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-sqlite3
|
||||||
$STD apt-get update
|
$STD apt-get install -y php-zip
|
||||||
$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-xml
|
||||||
msg_ok "Installed PHP8.3"
|
$STD apt-get install -y php-intl
|
||||||
|
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}"
|
||||||
wget -q https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz
|
$STD curl --silent -o ${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz"
|
||||||
tar xzf ${RELEASE}.tar.gz
|
$STD tar xvzf ${RELEASE}.tar.gz
|
||||||
#VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest |
|
||||||
VER=2.5.8
|
grep "tag_name" |
|
||||||
|
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
|
||||||
systemctl enable -q --now heimdall.service
|
$STD sudo systemctl enable --now heimdall.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in New Issue