feat: change install release sh

This commit is contained in:
Samuel N Cui
2023-09-28 02:41:05 +08:00
parent fd28c03ea1
commit f126b84686

View File

@@ -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
}