Compare commits

...

9 Commits

Author SHA1 Message Date
Duncan Hill
139c13aa07
Merge 85eb661c08 into 5d69a62b47 2025-01-19 14:14:55 +01:00
CanbiZ
5d69a62b47
update wording
Some checks are pending
Auto Update .app-headers / update-app-headers (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Frontend CI/CD / build (push) Waiting to run
Frontend CI/CD / deploy (push) Blocked by required conditions
2025-01-19 12:58:12 +01:00
community-scripts-pr-app[bot]
ed0b16bf17
Update CHANGELOG.md (#1584)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-19 11:27:23 +01:00
github-actions[bot]
9843b46a94
Update .app-headers file (#1585)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-19 11:16:51 +01:00
bvdberg01
c4580100a8
Fix updater (#1572) 2025-01-19 11:16:01 +01:00
Duncan Hill
85eb661c08
Remove $STD, add quiet/yes, add squelch via dev/null 2025-01-11 12:04:25 +00:00
Duncan Hill
d242578c35
Fix duplication in comment, rename to install_core_packages 2025-01-07 19:03:40 +00:00
Duncan Hill
67ddcd6ebb
Update to title case to match other info/ok strings 2025-01-07 18:52:32 +00:00
Duncan Hill
1789b71734
Make core dependencies a function, update sample installers to use it 2025-01-07 18:31:14 +00:00
15 changed files with 53 additions and 65 deletions

View File

@ -17,6 +17,14 @@ All LXC instances created using this repository come pre-installed with Midnight
Do not break established syntax in this file, as it is automatically updated by a Github Workflow Do not break established syntax in this file, as it is automatically updated by a Github Workflow
## 2025-01-19
### Changed
### 🚀 Updated Scripts
- Update Opengist.sh: Fix broken backup function [@bvdberg01](https://github.com/bvdberg01) ([#1572](https://github.com/community-scripts/ProxmoxVE/pull/1572))
## 2025-01-18 ## 2025-01-18
### Changed ### Changed

View File

@ -17,7 +17,7 @@
<img src="https://img.shields.io/badge/Discord-7289da?style=for-the-badge&logo=discord&logoColor=white" alt="Discord" /> <img src="https://img.shields.io/badge/Discord-7289da?style=for-the-badge&logo=discord&logoColor=white" alt="Discord" />
</a> </a>
<a href="https://ko-fi.com/community_scripts"> <a href="https://ko-fi.com/community_scripts">
<img src="https://img.shields.io/badge/Donate-FF5F5F?style=for-the-badge&logo=ko-fi&logoColor=white" alt="Donate" /> <img src="https://img.shields.io/badge/Support-FF5F5F?style=for-the-badge&logo=ko-fi&logoColor=white" alt="Donate" />
</a> </a>
<a href="https://github.com/community-scripts/ProxmoxVE/blob/main/.github/CONTRIBUTING.md"> <a href="https://github.com/community-scripts/ProxmoxVE/blob/main/.github/CONTRIBUTING.md">
<img src="https://img.shields.io/badge/Contribute-ff4785?style=for-the-badge&logo=git&logoColor=white" alt="Contribute" /> <img src="https://img.shields.io/badge/Contribute-ff4785?style=for-the-badge&logo=git&logoColor=white" alt="Contribute" />

View File

@ -32,29 +32,35 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
RELEASE=$(curl -s https://api.github.com/repos/thomiceli/opengist/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop opengist.service systemctl stop opengist.service
msg_ok "Stopped Service" msg_ok "Stopped Service"
apt-get update &>/dev/null
apt-get upgrade &>/dev/null
RELEASE=$(curl -s https://api.github.com/repos/thomiceli/opengist/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
cd /opt cd /opt
wget -qO "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz" mv /opt/opengist /opt/opengist-backup
rm -rf /opt/opengist wget -q "https://github.com/thomiceli/opengist/releases/download/v${RELEASE}/opengist${RELEASE}-linux-amd64.tar.gz"
tar -xzf opengist${RELEASE}-linux-amd64.tar.gz tar -xzf opengist${RELEASE}-linux-amd64.tar.gz
mv /opt/opengist-backup/config.yml /opt/opengist/config.yml
chmod +x /opt/opengist/opengist chmod +x /opt/opengist/opengist
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
rm -rf /opt/opengist${RELEASE}-linux-amd64.tar.gz
apt-get -y autoremove &>/dev/null
apt-get -y autoclean &>/dev/null
msg_ok "Updated ${APP} LXC" msg_ok "Updated ${APP} LXC"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start opengist.service systemctl start opengist.service
msg_ok "Started Service" msg_ok "Started Service"
msg_info "Cleaning up"
rm -rf /opt/opengist${RELEASE}-linux-amd64.tar.gz
rm -rf /opt/opengist-backup
apt-get -y autoremove &>/dev/null
apt-get -y autoclean &>/dev/null
msg_ok "Cleaned"
msg_ok "Updated Successfully"
else else
msg_ok "No update required. ${APP} is already at v${RELEASE}." msg_ok "No update required. ${APP} is already at v${RELEASE}."
fi fi

View File

@ -12,14 +12,10 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssh
$STD apk add tzdata $STD apk add tzdata
$STD apk add nano
$STD apk add mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Docker" msg_info "Installing Docker"

View File

@ -12,14 +12,7 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssh
$STD apk add nano
$STD apk add mc
msg_ok "Installed Dependencies"
msg_info "Installing Grafana" msg_info "Installing Grafana"
$STD apk add grafana $STD apk add grafana

View File

@ -12,14 +12,7 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssh
$STD apk add nano
$STD apk add mc
msg_ok "Installed Dependencies"
motd_ssh motd_ssh
customize customize

View File

@ -12,14 +12,10 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssl $STD apk add openssl
$STD apk add openssh
$STD apk add nano
$STD apk add mc
$STD apk add nginx $STD apk add nginx
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"

View File

@ -12,14 +12,10 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssl $STD apk add openssl
$STD apk add openssh
$STD apk add nano
$STD apk add mc
$STD apk add argon2 $STD apk add argon2
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"

View File

@ -12,14 +12,7 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies"
$STD apk add newt
$STD apk add curl
$STD apk add openssh
$STD apk add nano
$STD apk add mc
msg_ok "Installed Dependencies"
msg_info "Installing Alpine-Zigbee2MQTT" msg_info "Installing Alpine-Zigbee2MQTT"
$STD apk add zigbee2mqtt $STD apk add zigbee2mqtt

View File

@ -12,12 +12,7 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
motd_ssh motd_ssh
customize customize

View File

@ -12,12 +12,7 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
install_core_packages
msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
motd_ssh motd_ssh
customize customize

View File

@ -6,7 +6,7 @@
], ],
"date_created": "2025-01-14", "date_created": "2025-01-14",
"type": "ct", "type": "ct",
"updateable": false, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 6157, "interface_port": 6157,
"documentation": null, "documentation": null,

View File

@ -1,4 +1,4 @@
### Generated on 01-18-2025 ### Generated on 01-19-2025
################################################## ##################################################
### 2fauth.sh ### 2fauth.sh

View File

@ -133,6 +133,14 @@ update_os() {
msg_ok "Updated Container OS" msg_ok "Updated Container OS"
} }
# Install core packages that (almost) every container will depend upon.
# Be sure to update install.func for apt-based systems as appropriate.
install_core_packages() {
msg_info "Installing Core Packages"
apk add -q curl mc nano newt openssh sudo &>/dev/null
msg_ok "Installed Core Packages"
}
# This function modifies the message of the day (motd) and SSH settings # This function modifies the message of the day (motd) and SSH settings
motd_ssh() { motd_ssh() {
# Set terminal to 256-color mode # Set terminal to 256-color mode

View File

@ -197,6 +197,15 @@ EOF
msg_ok "Updated Container OS" msg_ok "Updated Container OS"
} }
# Install core packages that (almost) every container will depend upon.
# Be sure to update alpine-install.func to match for apk-based systems when
# adding a new package.
install_core_packages() {
msg_info "Installing Core Packages"
apt-get install -y curl mc sudo &> /dev/null
msg_ok "Installed Core Packages"
}
# This function modifies the message of the day (motd) and SSH settings # This function modifies the message of the day (motd) and SSH settings
motd_ssh() { motd_ssh() {
# Set terminal to 256-color mode # Set terminal to 256-color mode