26 lines
280 B
Bash
26 lines
280 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
cd $(mktemp --directory)
|
||
|
|
||
|
git clone https://git.csclub.uwaterloo.ca/www/www-new.git
|
||
|
|
||
|
cd www-new
|
||
|
|
||
|
npm install
|
||
|
npm run build
|
||
|
npm run export
|
||
|
|
||
|
pushd out
|
||
|
|
||
|
chgrp -R www .
|
||
|
chmod -R g+w .
|
||
|
|
||
|
popd
|
||
|
|
||
|
shopt -s dotglob
|
||
|
|
||
|
rm -rf /srv/www-csc/*
|
||
|
mv out/* /srv/www-csc/
|