-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupdate_files.sh
executable file
·18 lines (16 loc) · 969 Bytes
/
update_files.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# MIT License © https://github.com/scherma
# contact http_error_418 @ unsafehex.com
SCRIPTDIR=$(dirname "$(realpath "$0")")
rsync -r --update --info=progress2 "$SCRIPTDIR/src/runmanager/"* "/usr/local/unsafehex/antfarm/runmanager/"
chmod +x "/usr/local/unsafehex/antfarm/runmanager/runmanager"
rsync -r --update --info=progress2 --exclude "node_modules" "$SCRIPTDIR/src/node/"* "/usr/local/unsafehex/antfarm/www/"
rsync -r --update --info=progress2 --exclude "node_modules" "$SCRIPTDIR/src/api/"* "/usr/local/unsafehex/antfarm/api/"
rsync -r --update --info=progress2 "$SCRIPTDIR/src/utils/"* "/usr/local/unsafehex/antfarm/utils/"
rsync -r --update --info=progress2 "$SCRIPTDIR/src/novnc/"* "/usr/local/unsafehex/antfarm/novnc/"
cd "/usr/local/unsafehex/antfarm/www"
npm install
cd "/usr/local/unsafehex/antfarm/api"
npm install
chmod +x "/usr/local/unsafehex/antfarm/utils/suricata-clean.sh"
chmod +x "/usr/local/unsafehex/antfarm/utils/yara-update.sh"