From 74ed772637f39d4d03abd5124ba95256658ac1fc Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Jul 2020 18:31:17 +0200 Subject: New script for the daemon --- git-ro-daemon.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 git-ro-daemon.pl diff --git a/git-ro-daemon.pl b/git-ro-daemon.pl new file mode 100755 index 0000000..93c5339 --- /dev/null +++ b/git-ro-daemon.pl @@ -0,0 +1,18 @@ +#!/usr/local/bin/perl + +use strict; +use warnings; +use Term::ANSIColor; + +sub main { + system( + '/usr/local/bin/dash', + '-c', + '/usr/local/bin/git daemon --reuseaddr --base-path=/usr/home /usr/home &' + ); + exit; +} + +main(); + +__END__ -- cgit v1.2.3