mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "147d0ac8db7ac4db73f468f21866c610578a0751" and "a5b3aab72e466e7ec56bd100445777c5b8c54c87" have entirely different histories.
147d0ac8db
...
a5b3aab72e
11
ct/grocy.sh
11
ct/grocy.sh
|
@ -55,18 +55,13 @@ function default_settings() {
|
|||
function update_script() {
|
||||
header_info
|
||||
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}')
|
||||
if [[ ! $php_version == "8.3"* ]]; then
|
||||
msg_info "Updating PHP"
|
||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||
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"
|
||||
apt-get install -y php8.3
|
||||
update-alternatives --set php /usr/bin/php8.3
|
||||
fi
|
||||
msg_info "Updating ${APP}"
|
||||
bash /var/www/html/update.sh
|
||||
msg_ok "Updated Successfully"
|
||||
exit
|
||||
|
|
|
@ -20,13 +20,18 @@ $STD apt-get install -y mc
|
|||
$STD apt-get install -y apt-transport-https
|
||||
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)"
|
||||
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
|
||||
$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}
|
||||
msg_ok "Installed PHP8.3"
|
||||
$STD apt-get install -y php8.2
|
||||
$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"
|
||||
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 sudo
|
||||
$STD apt-get install -y mc
|
||||
$STD apt-get install -y apt-transport-https
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing PHP8.3"
|
||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||
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 update
|
||||
$STD apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,zip,xml}
|
||||
msg_ok "Installed PHP8.3"
|
||||
msg_info "Installing PHP"
|
||||
$STD apt-get install -y php
|
||||
$STD apt-get install -y php-sqlite3
|
||||
$STD apt-get install -y php-zip
|
||||
$STD apt-get install -y php-xml
|
||||
$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=V2.5.8
|
||||
RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
||||
msg_info "Installing Heimdall Dashboard ${RELEASE}"
|
||||
wget -q https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz
|
||||
tar xzf ${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=2.5.8
|
||||
$STD curl --silent -o ${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${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) }')
|
||||
rm -rf ${RELEASE}.tar.gz
|
||||
mv Heimdall-${VER} /opt/Heimdall
|
||||
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
||||
|
@ -55,7 +55,7 @@ TimeoutStopSec=30
|
|||
|
||||
[Install]
|
||||
WantedBy=multi-user.target" >$service_path
|
||||
systemctl enable -q --now heimdall.service
|
||||
$STD sudo systemctl enable --now heimdall.service
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
|
|
Loading…
Reference in New Issue