use fetch_and_deploy_gh_release
This commit is contained in:
@@ -28,12 +28,12 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_tag "cinny" "cinnyapp/cinny"; then
|
if check_for_gh_release "cinny" "cinnyapp/cinny"; then
|
||||||
msg_info "Backing up Data"
|
msg_info "Backing up Data"
|
||||||
cp /opt/cinny/config.json /tmp/cinny_config.json
|
cp /opt/cinny/config.json /tmp/cinny_config.json
|
||||||
msg_ok "Backed up Data"
|
msg_ok "Backed up Data"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "cinny" "cinnyapp/cinny"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny"
|
||||||
|
|
||||||
msg_info "Restoring Configuration"
|
msg_info "Restoring Configuration"
|
||||||
cp /tmp/cinny_config.json /opt/cinny/config.json
|
cp /tmp/cinny_config.json /opt/cinny/config.json
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
msg_info "Installing Cinny"
|
msg_info "Installing Cinny"
|
||||||
|
|
||||||
fetch_and_deploy_gh_tag "cinny" "cinnyapp/cinny"
|
fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny"
|
||||||
|
|
||||||
cat <<'EOF' >/etc/nginx/http.d/default.conf
|
cat <<'EOF' >/etc/nginx/http.d/default.conf
|
||||||
server {
|
server {
|
||||||
@@ -45,7 +45,6 @@ server {
|
|||||||
EOF
|
EOF
|
||||||
$STD rc-update add nginx default
|
$STD rc-update add nginx default
|
||||||
$STD rc-service nginx start
|
$STD rc-service nginx start
|
||||||
echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
|
|
||||||
msg_ok "Installed Cinny"
|
msg_ok "Installed Cinny"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user