make some changes to make sssg more independent from stupidcomputer
This commit is contained in:
parent
6ab249a96f
commit
dabe830008
|
@ -10,15 +10,24 @@ EOF
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# if we're trying to do anything, check if the directory has a valid root
|
||||||
|
if [ ! -f ".sssg_generated" ]; then
|
||||||
|
printf "it doesn't seem like I'm in a static site directory -- is that true?\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "-s" ]; then
|
if [ "$1" = "-s" ]; then
|
||||||
python3 -m http.server -d output
|
python3 -m http.server -d output
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "-d" ]; then
|
if [ "$1" = "-d" ]; then
|
||||||
ssh netbox 'rm -rf ~/output'
|
if [ -f ".deploy" ]; then
|
||||||
scp -P 443 -r ./output ryan@beepboop.systems:~
|
sh ./.deploy
|
||||||
ssh netbox 'sudo -S sh -c "rm -rf /var/www/beepboop.systems; mkdir /var/www/beepboop.systems; cp -r ./output/* /var/www/beepboop.systems/"'
|
else
|
||||||
|
printf "configure a deploy script first!\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
@ -31,12 +40,10 @@ IFS='
|
||||||
|
|
||||||
mkdir -p ./output
|
mkdir -p ./output
|
||||||
|
|
||||||
# compile the resume first
|
# if there's special things that need to run, run them
|
||||||
cp -r ../resume ../resume-work
|
if [ -f ".special_commands" ]; then
|
||||||
cd ../resume-work
|
sh ./.special_commands
|
||||||
pdflatex resume.tex
|
fi
|
||||||
cd -
|
|
||||||
cp ../resume-work/resume.pdf output/
|
|
||||||
|
|
||||||
for i in $directories; do
|
for i in $directories; do
|
||||||
if [ ! "$i" = "./output" ]; then
|
if [ ! "$i" = "./output" ]; then
|
||||||
|
|
Loading…
Reference in New Issue