mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 14:25:53 +00:00
apply requested changes
This commit is contained in:
@@ -34,13 +34,12 @@ function update_script() {
|
|||||||
systemctl stop kutt
|
systemctl stop kutt
|
||||||
msg_ok "Stopped services"
|
msg_ok "Stopped services"
|
||||||
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "kutt" "thedevs-network/kutt" "tarball" "latest"
|
fetch_and_deploy_gh_release "kutt" "thedevs-network/kutt" "tarball" "latest"
|
||||||
|
|
||||||
msg_info "Configuring Kutt"
|
msg_info "Configuring Kutt"
|
||||||
cd /opt/kutt
|
cd /opt/kutt
|
||||||
npm install
|
$STD npm install
|
||||||
npm run migrate
|
$STD npm run migrate
|
||||||
msg_ok "Configured Kutt"
|
msg_ok "Configured Kutt"
|
||||||
|
|
||||||
msg_info "Starting services"
|
msg_info "Starting services"
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ cd /opt/kutt
|
|||||||
cp .example.env ".env"
|
cp .example.env ".env"
|
||||||
sed -i "s|DEFAULT_DOMAIN=localhost:3000|DEFAULT_DOMAIN=${KUTT_HOST}|g" ".env"
|
sed -i "s|DEFAULT_DOMAIN=localhost:3000|DEFAULT_DOMAIN=${KUTT_HOST}|g" ".env"
|
||||||
sed -i "s|JWT_SECRET=|JWT_SECRET=$(openssl rand -base64 32)|g" ".env"
|
sed -i "s|JWT_SECRET=|JWT_SECRET=$(openssl rand -base64 32)|g" ".env"
|
||||||
npm install
|
$STD npm install
|
||||||
npm run migrate
|
$STD npm run migrate
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/kutt.service
|
cat <<EOF >/etc/systemd/system/kutt.service
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
Reference in New Issue
Block a user