about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-07-13 23:16:56 -0400
committerCharadon <dev@iotib.net>2022-07-13 23:16:56 -0400
commit23237bb58e1e5342dd0d7c29e133c2227627785b (patch)
tree72911d2aa18f6d94ab5f50050b59109fb75bdea1
parentf5db520322561de9032fbf0406d2808d088572cc (diff)
downloaddscip-23237bb58e1e5342dd0d7c29e133c2227627785b.tar.gz
Added License
-rw-r--r--README13
-rwxr-xr-xdscip18
2 files changed, 25 insertions, 6 deletions
diff --git a/README b/README
index 47b6038..327a8e5 100644
--- a/README
+++ b/README
@@ -1,9 +1,9 @@
-dscip: Dead Simple Continuous Integration Posix
+dscip: Dead Simple Continuous Integration POSIX
 ================================================================================
 Description:
 This is a script/daemon that scans a git repo for changes, and runs commands
-automatically. It's mean't to be a dead simple alternative to services like
-gitlab-ci and jenkins. This script was also made to be as POSIX compliant as
+automatically. It's meant to be a dead simple alternative to services like
+Gitlab-ci and Jenkins. This script was also made to be as POSIX compliant as
 possible, so it should run on basically every platform with a POSIX shell.
 ================================================================================
 How To Use:
@@ -12,11 +12,12 @@ How To Use:
     3. Open dscip in your text editor of choice and modify the variables to your
 	   liking.
     4. Edit pre.sh, build.sh, and post.sh to fit your needs.
-    5. Create a user for building. Like `dscip_user`
-    6. Run chown -R dscip /var/dscip
+    5. Create a user for building. Like `dscip_user` or `project_name`
+       (Depends how separated you want to privileges to be.)
+    6. Run chown -R <user> /var/dscip
        So the new user owns it all.
     Cron:
-		Add: * * * * * dscip_user /var/dscip/project_name/dscip
+		Add: * * * * * <user> /var/dscip/project_name/dscip
         to your crontab.
     Daemon:
         Set DSCIP_DAEMON to true, and create an init script for it, and enable
diff --git a/dscip b/dscip
index 8b4eb94..4389614 100755
--- a/dscip
+++ b/dscip
@@ -1,5 +1,23 @@
 #!/bin/sh
+
+################################################################################
+# Copyright 2022 Charadon                                                      #
+#                                                                              #
+# Licensed under the Apache License, Version 2.0 (the "License");              #
+# you may not use this file except in compliance with the License.             #
+# You may obtain a copy of the License at                                      #
+#                                                                              #
+# http://www.apache.org/licenses/LICENSE-2.0                                   #
+#                                                                              #
+# Unless required by applicable law or agreed to in writing, software          #
+# distributed under the License is distributed on an "AS IS" BASIS,            #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.     #
+# See the License for the specific language governing permissions and          #
+# limitations under the License.                                               #
+################################################################################
+
 set -e
+
 # Variables that control the program. #
 # GIT Repo #
 DSCIP_GITREPO="https://www.example.com/example/example.git"
.com> 2015-05-26 01:56:01 -0700 1466' href='/akkartik/mu/commit/index.html?h=main&id=fd5e720bcd1628b1561c7bf94f86b12e12caee27'>fd5e720b ^
e877e1fc ^

b514fbb9 ^


70763af3 ^








6845c4d9 ^
70763af3 ^




b514fbb9 ^
f6b44306 ^
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
38
39
40
41
42
43
44
45
46
47
48