You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
411 B

  1. #!/bin/sh
  2. read -p "Enter the name/url for repo: " url
  3. read -p "Enter the description for repo:" desc
  4. url_parsed=${url// /_}
  5. url_path="/var/www/git/${url_parsed}.git"
  6. ssh git@tovijaeschke.xyz "mkdir -p ${url_path} && git init --bare ${url_path} && echo -e \"\nrepo.url=${url_parsed}\nrepo.path=${url_path}\nrepo.desc=${desc}\n\" >> /etc/cgitrepos"
  7. git remote add origin git@git.tovijaeschke.xyz:${url_path}