|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+#!/bin/bash
|
|
|
2
|
+#
|
|
|
3
|
+# .---. . .
|
|
|
4
|
+# | | |
|
|
|
5
|
+# |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
|
|
|
6
|
+# | | (.-' (.-' ( | ( )| | | | )( )| | (.-'
|
|
|
7
|
+# ' ' --' --' -' - -' ' ' -' -' -' ' - --'
|
|
|
8
|
+#
|
|
|
9
|
+# Freedom in the Cloud
|
|
|
10
|
+#
|
|
|
11
|
+# Prepares control scripts
|
|
|
12
|
+#
|
|
|
13
|
+# License
|
|
|
14
|
+# =======
|
|
|
15
|
+#
|
|
|
16
|
+# Copyright (C) 2017 Bob Mottram <bob@freedombone.net>
|
|
|
17
|
+#
|
|
|
18
|
+# This program is free software: you can redistribute it and/or modify
|
|
|
19
|
+# it under the terms of the GNU Affero General Public License as published by
|
|
|
20
|
+# the Free Software Foundation, either version 3 of the License, or
|
|
|
21
|
+# (at your option) any later version.
|
|
|
22
|
+#
|
|
|
23
|
+# This program is distributed in the hope that it will be useful,
|
|
|
24
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
25
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
26
|
+# GNU Affero General Public License for more details.
|
|
|
27
|
+#
|
|
|
28
|
+# You should have received a copy of the GNU Affero General Public License
|
|
|
29
|
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
30
|
+
|
|
|
31
|
+PROJECT_NAME='freedombone'
|
|
|
32
|
+
|
|
|
33
|
+cat /usr/local/bin/${PROJECT_NAME}-vars /usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-* /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-* > /tmp/includescripts
|
|
|
34
|
+
|
|
|
35
|
+cat /tmp/includescripts /usr/local/bin/freedombone-controlpanel > /usr/local/bin/control
|
|
|
36
|
+cat /tmp/includescripts /usr/local/bin/freedombone-controlpanel-user > /usr/local/bin/controluser
|
|
|
37
|
+
|
|
|
38
|
+sed '/# Start including files/,/# End including files/d' /usr/local/bin/control
|
|
|
39
|
+sed '/# Start including files/,/# End including files/d' /usr/local/bin/controluser
|
|
|
40
|
+
|
|
|
41
|
+rm /tmp/includescripts
|
|
|
42
|
+
|
|
|
43
|
+exit 0
|