drist

collection of scripts for use with drist
git clone git://git.pyratebeard.net/drist.git
Log | Files | Refs | README

script (1154B)


      1 #!/bin/sh
      2 
      3 # add beowulf/backports repo for git-2.30.2
      4 vers_code=$(grep VERSION_CODENAME /etc/os-release  | awk -F\= '{print $2}')
      5 echo "deb http://deb.devuan.org/merged ${vers_code}-backports main" | sudo tee -a /etc/apt/sources.list
      6 sudo apt-get install -y git/${vers_code}-backports gcc make linux-libc-dev musl libgit2-dev nginx xinetd
      7 
      8 sudo mkdir -p /srv/git
      9 
     10 sudo mv style.css favicon.png logo.png /var/www/html
     11 sudo mv stagitdo /usr/local/bin/stagitdo && sudo chmod +x /usr/local/bin/stagitdo
     12 sudo mv new_repo /usr/local/bin/new_repo && sudo chmod +x /usr/local/bin/new_repo
     13 
     14 sudo useradd -m -d /home/git git
     15 sudo mkdir /home/git/.ssh && sudo chmod 700 /home/git/.ssh
     16 sudo touch /home/git/.ssh/authorized_keys && sudo chmod 600 /home/git/.ssh/authorized_keys
     17 cat authorized_keys | sudo tee -a /home/git/.ssh/authorized_keys
     18 sudo chown -R git:git /home/git/.ssh
     19 
     20 sudo mv git-post-receive-hook /srv/git
     21 
     22 sudo chown git:git /srv/git
     23 
     24 sudo mv git-daemon /etc/xinetd.d/
     25 sudo chown root:root /etc/xinetd.d/git-daemon
     26 
     27 sudo git clone git://git.codemadness.org/stagit /opt/stagit
     28 cd /opt/stagit
     29 sudo make
     30 sudo make install
     31 
     32 sudo /etc/init.d/xinetd reload