SpectreOS-old/auto.sh

22 lines
389 B
Bash
Raw Permalink Normal View History

2018-02-26 02:41:29 +01:00
#!/bin/bash
set -ex
repo="SpectreOS"
server="137.74.140.105"
user="simono41"
version="$1"
[[ -z "${version}" ]] && version="standart"
cd /root/
if [ -d "/root/${repo}/" ]; then
2018-02-26 06:07:15 +01:00
echo "Existiert bereits!!!"
rm -Rv ${repo}
2018-02-26 02:41:29 +01:00
fi
2018-02-26 06:07:15 +01:00
git clone http://${server}/${user}/${repo}.git
2018-02-26 02:41:29 +01:00
cd /root/${repo}/
./make_mksquashfs-auto.sh ${version}
scp out/* ${server}:/var/www/html/
echo "Fertig!!!"