You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
402 B

#!/bin/bash
rm -rf /data/tmp/BetterBash
cd /data/tmp/
git clone http://127.0.0.1:3000/czoczo/BetterBash
cp /data/tmp/BetterBash/getbb.sh /wwwroot/getbb.sh
tar -czvf betterbash-latest.tar.gz -C /data/tmp/BetterBash/ . --exclude=".git" --exclude="README.md" --exclude="getbb.sh" --exclude="post-hook.sh"
rm /wwwroot/betterbash-latest.tar.gz
mv betterbash-latest.tar.gz /wwwroot/betterbash-latest.tar.gz