aboutsummaryrefslogtreecommitdiffstats
path: root/README.org
blob: 35af1bb5decd88fa2a556920ca73fb6560442d84 (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
37
#+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
    │   ├── adduser.pl
    │   ├── chdesc.pl
    │   ├── chowner.pl
    │   ├── newrepo.pl
    │   ├── rmrepo.pl
    │   └── rmuser.pl
    ├── other
    │   └── git-ro-daemon.pl
    ├── cron
    │   ├── counter.sh
    │   └── gitjoe.pl
    └── vps-do.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.
- ~cron/~ scripts are run via cron jobs. They update the GitJoe repositories front-end website via ~stagit~ and update the website visitors counter.
- ~other/~ script is just a single line the start the ~git daemon~ to serve public repositories.
- The ~vps-do.pl~ script allows you to execute one of the distant scripts from your home terminal, opening and closing the ~ssh~ session for you. You still need the ~dash~ shell as a dependency on your home terminal.