diff --git a/ct/kutt.sh b/ct/kutt.sh index 8845d6a5b..d3b843318 100644 --- a/ct/kutt.sh +++ b/ct/kutt.sh @@ -34,13 +34,12 @@ function update_script() { systemctl stop kutt msg_ok "Stopped services" - fetch_and_deploy_gh_release "kutt" "thedevs-network/kutt" "tarball" "latest" msg_info "Configuring Kutt" cd /opt/kutt - npm install - npm run migrate + $STD npm install + $STD npm run migrate msg_ok "Configured Kutt" msg_info "Starting services" diff --git a/install/kutt-install.sh b/install/kutt-install.sh index 05235c469..102b49e34 100644 --- a/install/kutt-install.sh +++ b/install/kutt-install.sh @@ -26,8 +26,8 @@ cd /opt/kutt cp .example.env ".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" -npm install -npm run migrate +$STD npm install +$STD npm run migrate cat </etc/systemd/system/kutt.service [Unit]