25 lines
760 B
Bash
Executable File
25 lines
760 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
|
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
|
|
|
|
|
echo -e "\n${idsCL[LightGreen]}Emulator-Nextcloud-Sync Installation Script${idsCL[Default]}"
|
|
|
|
set -eu
|
|
git clone --recursive https://git.schroedercity.com/voltron/emulator-sync.git /opt/idssys/emulator-sync
|
|
ln -s /opt/idssys/emulator-sync/run.sh /usr/local/bin/esync
|
|
|
|
if [ ! -d "/opt/idssys/defaults" ]; then
|
|
git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
|
|
fi
|
|
|
|
echo ""
|
|
echo -e "${idsCL[Yellow]}Emulator-Nextcloud-Sync has been Installed${idsCL[Default]}"
|
|
echo ""
|
|
echo -e "To run backups, use the command: ${idsCL[Green]}esync${idsCL[Default]}"
|
|
echo ""
|
|
echo ""
|
|
|
|
exit 0
|