Configurable
This commit is contained in:
parent
9757cfbb97
commit
8093c6ac9f
10
home/bin/sc
10
home/bin/sc
@ -7,15 +7,21 @@
|
|||||||
|
|
||||||
### CHANGE THESE FUNCTIONS:
|
### CHANGE THESE FUNCTIONS:
|
||||||
|
|
||||||
|
# Host is the ssh host
|
||||||
|
HOST=tyrel.dev
|
||||||
|
# Site is the domain (can differ from host)
|
||||||
|
SITE=tyrel.bike
|
||||||
|
|
||||||
|
|
||||||
upload() {
|
upload() {
|
||||||
# Given a filepath and a target name, upload the screenshot
|
# Given a filepath and a target name, upload the screenshot
|
||||||
chmod +r "$1"
|
chmod +r "$1"
|
||||||
scp "$1" "tyrel.dev:/www/tyrel.bike/s/$2"
|
scp "$1" "$HOST:/www/$SITE/s/$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
url() {
|
url() {
|
||||||
# Given a target name, echo the expected URL of the uploaded screenshot
|
# Given a target name, echo the expected URL of the uploaded screenshot
|
||||||
echo "https://tyrel.bike/s/$1"
|
echo "https://$SITE/s/$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
### (End)
|
### (End)
|
||||||
|
Loading…
Reference in New Issue
Block a user