mirror of
https://github.com/tteck/Proxmox.git
synced 2025-01-15 00:51:34 +00:00
Compare commits
2 Commits
bfce73c0ed
...
d073535346
Author | SHA1 | Date | |
---|---|---|---|
|
d073535346 | ||
|
b567bd848b |
@ -31,8 +31,10 @@ msg_ok "Installed Nginx"
|
|||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
msg_info "Installing BunkerWeb v${RELEASE} (Patience)"
|
msg_info "Installing BunkerWeb v${RELEASE} (Patience)"
|
||||||
curl -fsSL "https://repo.bunkerweb.io/bunkerity/bunkerweb/gpgkey" | gpg --dearmor >/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg
|
#curl -fsSL "https://repo.bunkerweb.io/bunkerity/bunkerweb/gpgkey" | gpg --dearmor >/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg] https://repo.bunkerweb.io/bunkerity/bunkerweb/debian/ bookworm main" >/etc/apt/sources.list.d/bunkerity_bunkerweb.list
|
#echo "deb [signed-by=/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg] https://repo.bunkerweb.io/bunkerity/bunkerweb/debian/ bookworm main" >/etc/apt/sources.list.d/bunkerity_bunkerweb.list
|
||||||
|
curl -fsSL "https://packagecloud.io/bunkerity/bunkerweb/gpgkey" | gpg --dearmor >/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg] https://packagecloud.io/bunkerity/bunkerweb/debian/ bookworm main" >/etc/apt/sources.list.d/bunkerity_bunkerweb.list
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
export UI_WIZARD=1
|
export UI_WIZARD=1
|
||||||
$STD apt-get install -y bunkerweb=${RELEASE}
|
$STD apt-get install -y bunkerweb=${RELEASE}
|
||||||
|
@ -37,6 +37,7 @@ msg_info "Creating user octoprint"
|
|||||||
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint
|
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint
|
||||||
usermod -aG sudo,tty,dialout octoprint
|
usermod -aG sudo,tty,dialout octoprint
|
||||||
chown -R octoprint:octoprint /opt
|
chown -R octoprint:octoprint /opt
|
||||||
|
echo "octoprint ALL=NOPASSWD: $(command -v systemctl) restart octoprint, $(command -v reboot), $(command -v poweroff)" > /etc/sudoers.d/octoprint
|
||||||
msg_ok "Created user octoprint"
|
msg_ok "Created user octoprint"
|
||||||
|
|
||||||
msg_info "Installing OctoPrint"
|
msg_info "Installing OctoPrint"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user