blob: 95839bd3ef74161195aac2729d8e77f59f17ca03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#+TITLE: My server scripts
These are a bunch of scripts for my VPS server. They might only run on BSD servers.
* Dependecies
- *BSD*-type operating system
- ~perl~
- ~dash~ shell
- ~ssh~
- ~git~
- ~stagit~
* Functions
The source tree is the following:
#+BEGIN_SRC shell
└── src
├── gitjoe
│ ├── addsshkey.pl
│ ├── chdesc.pl
│ ├── chowner.pl
│ ├── newrepo.pl
│ ├── newuser.pl
│ ├── rmrepo.pl
│ └── rmuser.pl
├── other
│ └── git-ro-daemon.pl
└── update
├── gitjoe.pl
└── serv.pl
#+END_SRC
- ~gitjoe/~ scripts are meant to be run on the server directly. They are tools to add GitJoe users, repos, change descritpion, etc.
- ~distant/~ scripts are meant to be run on your home machine. They simply connect via ~ssh~ to your distant server and run the according script so it even skips the ~ssh~ phase.
- ~update/~ scripts are run via cron jobs. They update the GitJoe repositories front-end website via ~stagit~ and pull ~master~ branches of the websites via ~git~.
- ~other/~ script is just a single line the start the ~git daemon~ to serve public repositories.
|