mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-23 03:23:39 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a153575f2 |
No files matched your search
+1
-3
@@ -615,9 +615,7 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- incus: install what a Proxmox template ships into Incus containers too [@MickLesk](https://github.com/MickLesk) ([core#293](https://github.com/community-scripts/core/pull/293))
|
||||
- pve/incus: give ct scripts host-side helpers that work on both backends [@MickLesk](https://github.com/MickLesk) ([core#294](https://github.com/community-scripts/core/pull/294))
|
||||
- Reload systemd units after a .deb install [@MickLesk](https://github.com/MickLesk) ([core#291](https://github.com/community-scripts/core/pull/291))
|
||||
- Reload systemd units after a .deb install [@MickLesk](https://github.com/MickLesk) ([core#291](https://github.com/community-scripts/core/pull/291))
|
||||
- Read github.com when the update check hits the API rate limit [@MickLesk](https://github.com/MickLesk) ([core#292](https://github.com/community-scripts/core/pull/292))
|
||||
- Resume a VM image download that broke off [@MickLesk](https://github.com/MickLesk) ([core#290](https://github.com/community-scripts/core/pull/290))
|
||||
|
||||
|
||||
+3
-15
@@ -213,20 +213,8 @@ start
|
||||
build_container
|
||||
|
||||
msg_info "Attaching data storage volume"
|
||||
$STD pct stop "$CTID"
|
||||
if [ "${PROTECT_CT:-}" == "1" ] || [ "${PROTECT_CT:-}" == "yes" ]; then
|
||||
$STD pct set "$CTID" --protection 0
|
||||
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
|
||||
$STD pct set "$CTID" --protection 1
|
||||
else
|
||||
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
|
||||
fi
|
||||
$STD pct start "$CTID"
|
||||
for i in {1..10}; do
|
||||
pct status "$CTID" | grep -q "status: running" && break
|
||||
sleep 1
|
||||
done
|
||||
$STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||
ct_attach_volume 1 /opt/authentik-data
|
||||
$STD ct_exec bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
|
||||
@@ -235,7 +223,7 @@ $STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoi
|
||||
msg_ok "Attached data storage volume"
|
||||
|
||||
msg_info "Starting Services"
|
||||
pct exec "$CTID" -- systemctl enable -q --now authentik-server authentik-worker
|
||||
ct_exec systemctl enable -q --now authentik-server authentik-worker
|
||||
msg_ok "Started Services"
|
||||
|
||||
description
|
||||
|
||||
+1
-5
@@ -44,11 +44,7 @@ build_container
|
||||
description
|
||||
|
||||
msg_info "Restarting ${APP} for DietPi's first boot"
|
||||
if command -v pct &>/dev/null; then
|
||||
pct reboot "$CTID"
|
||||
else
|
||||
incus restart "$CTID"
|
||||
fi
|
||||
ct_restart
|
||||
msg_ok "Restarted ${APP}"
|
||||
|
||||
msg_ok "Completed successfully!"
|
||||
|
||||
@@ -45,4 +45,4 @@ description
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}To link the sensor to your orb account run:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}pct exec ${CTID} -- runuser -u orb -- orb link${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}$(ct_exec_hint runuser -u orb -- orb link)${CL}"
|
||||
Reference in new issue
Block a user