Update wikijs-v5.sh

fix path
This commit is contained in:
tteckster 2023-01-06 10:36:13 -05:00 committed by GitHub
parent 120da5bea6
commit 2eb375a516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,9 +318,9 @@ systemctl stop wikijs
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
cp /opt/wiki/config.yml ~/config.yml.bak cp /opt/wikijs/config.yml ~/config.yml.bak
rm -rf /opt/wiki/* rm -rf /opt/wikijs/*
cd /opt/wiki cd /opt/wikijs
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz &>/dev/null wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz &>/dev/null
tar xzf wiki-js.tar.gz tar xzf wiki-js.tar.gz
cp ~/config.yml.bak ./config.yml cp ~/config.yml.bak ./config.yml