small fixes
This commit is contained in:
parent
333d95260f
commit
fb85f6a8e2
@ -29,6 +29,8 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
setup_docker
|
||||||
|
|
||||||
if check_for_gh_release "discopanel" "nickheyer/discopanel"; then
|
if check_for_gh_release "discopanel" "nickheyer/discopanel"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop discopanel
|
systemctl stop discopanel
|
||||||
@ -42,9 +44,8 @@ function update_script() {
|
|||||||
/opt/discopanel_backup_last/
|
/opt/discopanel_backup_last/
|
||||||
msg_ok "Created Backup"
|
msg_ok "Created Backup"
|
||||||
|
|
||||||
rm -rf /opt/discopanel
|
|
||||||
|
|
||||||
CLEAN_INSTALL= 1 fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel"
|
CLEAN_INSTALL= 1 fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel"
|
||||||
|
|
||||||
msg_info "Setting up DiscoPanel"
|
msg_info "Setting up DiscoPanel"
|
||||||
cd /opt/discopanel/web/discopanel
|
cd /opt/discopanel/web/discopanel
|
||||||
$STD npm install
|
$STD npm install
|
||||||
@ -55,6 +56,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
cp -r /opt/discopanel_backup_last/* /opt/discopanel/data/
|
cp -r /opt/discopanel_backup_last/* /opt/discopanel/data/
|
||||||
|
rm -rf /opt/discopanel_backup_last
|
||||||
msg_ok "Restored Data"
|
msg_ok "Restored Data"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@ -19,13 +19,7 @@ msg_ok "Installed Dependencies"
|
|||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_go
|
setup_go
|
||||||
fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel"
|
fetch_and_deploy_gh_release "discopanel" "nickheyer/discopanel" "tarball" "latest" "/opt/discopanel"
|
||||||
|
setup_docker
|
||||||
msg_info "Installing Docker"
|
|
||||||
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
|
|
||||||
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
|
|
||||||
echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
|
|
||||||
$STD sh <(curl -fsSL https://get.docker.com)
|
|
||||||
msg_ok "Installed Docker"
|
|
||||||
|
|
||||||
msg_info "Setting up DiscoPanel"
|
msg_info "Setting up DiscoPanel"
|
||||||
cd /opt/discopanel/web/discopanel
|
cd /opt/discopanel/web/discopanel
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user