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.
|
#!/bin/sh
|
|
|
|
read -p "Enter the name/url for repo: " url
|
|
read -p "Enter the description for repo: " desc
|
|
|
|
url_parsed=${url// /_}
|
|
|
|
url_path="/var/www/git/${url_parsed}.git"
|
|
|
|
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"
|
|
|
|
git remote add origin git@git.tovijaeschke.xyz:${url_path}
|