aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 18:31:17 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 18:31:17 +0200
commit74ed772637f39d4d03abd5124ba95256658ac1fc (patch)
tree6db6b126f4cf7722d0a91149a001b0f273cd9c35
parentBetter like this (diff)
downloadjoe-scripts-74ed772637f39d4d03abd5124ba95256658ac1fc.tar.gz
joe-scripts-74ed772637f39d4d03abd5124ba95256658ac1fc.tar.bz2
joe-scripts-74ed772637f39d4d03abd5124ba95256658ac1fc.tar.xz
joe-scripts-74ed772637f39d4d03abd5124ba95256658ac1fc.tar.zst
joe-scripts-74ed772637f39d4d03abd5124ba95256658ac1fc.zip
New script for the daemon
-rwxr-xr-xgit-ro-daemon.pl18
1 files changed, 18 insertions, 0 deletions
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__