diff --git a/ct/headers/oxicloud b/ct/headers/oxicloud new file mode 100644 index 000000000..b48c6ee29 --- /dev/null +++ b/ct/headers/oxicloud @@ -0,0 +1,6 @@ + ____ _ ________ __ + / __ \_ __(_) ____/ /___ __ ______/ / + / / / / |/_/ / / / / __ \/ / / / __ / +/ /_/ /> /etc/oxicloud/.env +chmod 600 /etc/oxicloud/.env +msg_ok "Configured OxiCloud" + +msg_info "Creating OxiCloud Service" +cat </etc/systemd/system/oxicloud.service +[Unit] +Description=OxiCloud Service +After=network.target postgresql.service +Requires=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/oxicloud +EnvironmentFile=/etc/oxicloud/.env +ExecStart=/usr/local/bin/oxicloud +Restart=always +RestartSec=5 +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now oxicloud +msg_ok "Created OxiCloud Service" + +motd_ssh +customize +cleanup_lxc