Removed again application.

Used cleanup_lxc
This commit is contained in:
DragoQC 2025-11-28 16:22:29 -05:00
parent 3a39159a18
commit 4dbc509cde

View File

@ -44,14 +44,14 @@ go build -o discopanel cmd/discopanel/main.go
msg_ok "Built DiscoPanel backend" msg_ok "Built DiscoPanel backend"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service cat <<EOF >/etc/systemd/system/discopanel.service
[Unit] [Unit]
Description=${APPLICATION} Service Description=DiscoPanel Service
After=network.target After=network.target
[Service] [Service]
WorkingDirectory=/opt/${APPLICATION} WorkingDirectory=/opt/discopanel
ExecStart=/opt/${APPLICATION}/discopanel ExecStart=/opt/discopanel/discopanel
Restart=always Restart=always
User=root User=root
Environment=PORT=8080 Environment=PORT=8080
@ -60,14 +60,9 @@ Environment=PORT=8080
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now "${APPLICATION}" systemctl enable -q --now "discopanel"
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh
customize customize
cleanup_lxc
# Cleanup
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"