Commit | Line | Data |
---|---|---|
34d06ec3 JD |
1 | #! /bin/bash |
2 | ||
3 | # Download gnusocial directly from their download source, as it is the recommended route and there is no repo | |
4 | if ! $ROOTCMD getent passwd gnusocial ; then | |
5 | $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "gnusocial user" gnusocial | |
6 | fi | |
7 | ||
8 | if ! $ROOTCMD test -e /home/gnusocial/.ssh/id_rsa; then | |
9 | $ROOTCMD echo | $ROOTCMD sudo -u gnusocial ssh-keygen -N '' | |
10 | fi | |
11 | ||
12 | if ! $ROOTCMD echo | cd /home/gnusocial/ | |
0afe3a2e | 13 | mkdir /var/www/statusnet/ |
34d06ec3 JD |
14 | git clone https://git.gnu.io/gnu/gnu-social.git /home/gnusocial/gnu-social; then |
15 | rm -rf /home/gnusocial/gnu-social/.git | |
0afe3a2e | 16 | mv /home/gnusocial/gnu-social/* /var/www/statusnet/ |
34d06ec3 | 17 | fi |