Skip to content

Commit

Permalink
feat: change install release sh
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelncui committed Sep 27, 2023
1 parent fd28c03 commit f126b84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,15 @@ main() {
mkdir -p /opt/yatm
tar -xvzf ${GZIP_FILE} -C /opt/yatm

if [[ ! -f '/opt/yatm/config.yaml' ]]; then
cp /opt/yatm/config.example.yaml /opt/yatm/config.yaml
echo "Copy example config to /opt/yatm/config.yaml, you may edit it later"
fi

systemctl daemon-reload
systemctl enable /opt/yatm/yatm-httpd.service
systemctl restart yatm-httpd.service
systemctl stop yatm-httpd.service
systemctl start yatm-httpd.service
systemctl status yatm-httpd.service
}

Expand Down

0 comments on commit f126b84

Please sign in to comment.