mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-19 05:40:11 +00:00
Updates and improvements
install.sh installScripts function: update script not being copied over to /opt therefore update funcion was probably broken. changed script to copy all .sh scripts from .pivpn/scripts directory. Issue #871: fix backup script I was probably very drunk when i first wrote this backup script. fixed it, now works with new code refactoring, loads vars from setupVars Added backup for wireguard Moved script to global pivpnscripts. Added backup script to bash-completion Added backup script to pivpn script update.sh Commented the update from master branch to avoid users trying to update test from master. Updated LatestChages.md
This commit is contained in:
parent
8096af7ad0
commit
dd6bb069f0
6 changed files with 46 additions and 43 deletions
|
@ -50,9 +50,18 @@ updatefromtest(){
|
|||
|
||||
##Clone and copy pivpn scripts to /opt/pivpn
|
||||
cloneandupdate(){
|
||||
git clone "$pivpnrepo" "$pivpnlocalpath"
|
||||
cp "${pivpnlocalpath}"/scripts/*.sh "$pivpnscripts"
|
||||
cp "${pivpnlocalpath}"/scripts/bash-completion "$bashcompletiondir"
|
||||
##This is to be removed after merge.
|
||||
##Alert for users trying to update from master.
|
||||
if [ $VPN == "wireguard" ]; then
|
||||
echo "ERROR: You have installed pivpn from test branch."
|
||||
echo "Wireguard not yet available on master, please use -t flag"
|
||||
exit 1
|
||||
fi
|
||||
## Remove Above and uncomment below when test is moved to master
|
||||
# git clone "$pivpnrepo" "$pivpnlocalpath"
|
||||
# cp "${pivpnlocalpath}"/scripts/*.sh "$pivpnscripts"
|
||||
# cp "${pivpnlocalpath}"/scripts/$VPN/*.sh "$pivpnscripts"
|
||||
# cp "${pivpnlocalpath}"/scripts/$VPN/bash-completion "$bashcompletiondir"
|
||||
}
|
||||
|
||||
##same as cloneandupdate() but from test branch
|
||||
|
@ -97,4 +106,3 @@ else
|
|||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue