-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to apt for Ubuntu 20 * switch to apt for Ubuntu 20 * update required packages for ubuntu 20 * don't make virtualenv as www-data; it doesn't have write permission * fetch and push using new GitHub repo format * fetch public over https; only require ssh key to push * backwards compatibility for older ubuntu * correct minimum version * backwards compatibility with older Ubuntu versions * add legacy packages list for compatibility * add compatability for old Ubuntu versions * move to right folder * geq not strictly greater than * remove unnecessary `if`
- Loading branch information
1 parent
f08c65e
commit d194d0c
Showing
7 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ | |
set -ef -o pipefail | ||
|
||
# Parameters | ||
GIT_REPO="git://github.com/learning-unlimited/ESP-Website.git" | ||
GIT_PUBLIC_REPO="https://github.com/learning-unlimited/ESP-Website.git" | ||
GIT_REPO="[email protected]:learning-unlimited/ESP-Website.git" | ||
APACHE_CONF_FILE="/etc/apache2/sites-available/esp_sites.conf" | ||
APACHE_REDIRECT_CONF_FILE="/etc/apache2/sites-available/esp_sites/https_redirect.conf" | ||
AUTH_USER_FILE="/lu/auth/dav_auth" | ||
|
@@ -227,8 +228,9 @@ if [[ "$MODE_GIT" || "$MODE_ALL" ]] ; then | |
mv "$BASEDIR" "$BASEDIR.old" | ||
fi | ||
echo "Creating site $SITENAME in $CURDIR." | ||
git clone "$GIT_REPO" "$SITENAME" | ||
git clone "$GIT_PUBLIC_REPO" "$SITENAME" | ||
cd "$BASEDIR" | ||
git remote set-url --push origin $GIT_REPO | ||
git checkout "$GIT_BRANCH" | ||
if [[ -e "$BASEDIR.old/.espsettings" ]] ; then | ||
echo "Executing: cp $BASEDIR.tmp/.espsettings $BASEDIR/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/bash | ||
set -euf -o pipefail | ||
|
||
sudo apt-get update | ||
if [ $(echo "$(lsb_release -rs) > 20" | bc) -eq 1 ]; then | ||
sudo apt update | ||
else | ||
sudo apt-get update | ||
fi | ||
|
||
# install pip | ||
sudo add-apt-repository universe | ||
sudo apt-get install -y curl | ||
if [ $(echo "$(lsb_release -rs) > 20" | bc) -eq 1 ]; then | ||
sudo apt install -y curl | ||
else | ||
sudo apt-get install -y curl | ||
fi | ||
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py | ||
sudo python2 get-pip.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
libapache2-mod-wsgi | ||
libapache2-svn | ||
libapache2-mod-svn | ||
libapache2-mod-rpaf | ||
exim4-config | ||
exim4-base | ||
exim4-daemon-heavy | ||
nagios3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
libapache2-mod-wsgi | ||
libapache2-svn | ||
libapache2-mod-rpaf | ||
exim4-config | ||
exim4-base | ||
exim4-daemon-heavy | ||
nagios3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters