mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
29 lines
804 B
Bash
Executable File
29 lines
804 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Make sure only root can run our script
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "This script must be run as root" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
#EDIT_THESE
|
|
export NEWZPATH="/var/www/newznab"
|
|
source $NEWZPATH"/misc/update_scripts/nix_scripts/tmux/defaults.sh"
|
|
export PASSWORD="password"
|
|
|
|
svn co --force --username svnplus --password $PASSWORD svn://svn.newznab.com/nn/branches/nnplus $NEWZPATH/
|
|
svn export --force --username svnplus --password $PASSWORD svn://svn.newznab.com/nn/branches/nnplus $NEWZPATH/
|
|
|
|
cd $NEWZPATH"/misc/update_scripts"
|
|
php5 update_database_version.php
|
|
|
|
|
|
if [[ $KEVINS_COMP == "true" ]]; then
|
|
cd $NEWZPATH"/misc/update_scripts/nix_scripts/tmux/scripts"
|
|
cp -fr ../kevin123/* $NEWZPATH/www/lib/
|
|
fi
|
|
|
|
cd $NEWZPATH"/misc/update_scripts/nix_scripts/tmux/scripts"
|
|
./set_perms.sh
|
|
|