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

12 lines
276 B
Bash

#!/bin/bash
if [[ "$1" == "" ]]; then
printf "Filename: "
read FN
else
FN="$1"
fi
scp $FN crystalux@salyut.one:public_html/isos/.
ssh crystalux@salyut.one "rm public_html/isos/crystal-latest.iso && ln -s public_html/isos/$FN public_html/isos/crystal-latest.iso"