apply requested changes
This commit is contained in:
parent
924a67a69c
commit
227b7fa88d
@ -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"
|
||||
|
||||
@ -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 <<EOF >/etc/systemd/system/kutt.service
|
||||
[Unit]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user