Changeset 264 for scripts/usr/local/lib/7dtd/commands/updatescripts.sh
- Timestamp:
- Apr 6, 2016, 4:43:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/updatescripts.sh
r258 r264 58 58 wget -q http://illy.bz/fi/7dtd/management_scripts.tar.gz -O /tmp/management_scripts.tar.gz 59 59 rm -f /usr/local/lib/7dtd/VERSION /usr/local/lib/7dtd/*.sh /usr/local/lib/7dtd/commands/* /usr/local/bin/7dtd.sh 60 tar --touch --no-overwrite-dir --exclude=etc --exclude=home -xzf /tmp/management_scripts.tar.gz -C / 60 TMPPATH=`mktemp -d` 61 tar --touch --no-overwrite-dir -xzf /tmp/management_scripts.tar.gz -C $TMPPATH 62 cd $TMPPATH 63 for SRCFILE in `find * -type f`; do 64 DESTFOLDER=/`dirname $SRCFILE` 65 mkdir -p $DESTFOLDER 66 cp -a $SRCFILE $DESTFOLDER/ 67 done 68 rm -R $TMPPATH 61 69 62 70 chown root.root /etc/init.d/7dtd.sh
Note:
See TracChangeset
for help on using the changeset viewer.