Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
genieacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
genieacs
Commits
7e40b73e
Commit
7e40b73e
authored
Feb 17, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted back to use config.json
parent
5828c460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
26 deletions
+25
-26
Makefile
Makefile
+5
-8
genieacs-init
genieacs-init
+20
-18
No files found.
Makefile
View file @
7e40b73e
...
...
@@ -14,6 +14,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
@echo
"$$GENIEACS_LOGROTATE"
>
/etc/logrotate.d/genieacs
install
-v
-Dm755
genieacs
/usr/share/easycwmp/functions
install
-v
-Dm755
genieacs-init
/usr/sbin/genieacs-init
ln
-s
/run/genieacs/config.json
/srv/genieacs/config/config.json
@echo
"d /run/genieacs 0755 root root -"
>
/usr/lib/tmpfiles.d/genieacs.conf
...
...
@@ -36,8 +37,7 @@ Description=GenieACS CWMP
[Service]
Environment
=
"NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty
=
/run/genieacs/config.env
EnvironmentFile
=
/run/genieacs/config.env
ConditionFileNotEmpty
=
/run/genieacs/config.json
Restart
=
always
ExecStartPre
=
/usr/sbin/genieacs-init
ExecStart
=
/srv/genieacs/bin/genieacs-cwmp
...
...
@@ -54,8 +54,7 @@ Description=GenieACS file system
[Service]
Environment
=
"NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty
=
/run/genieacs/config.env
EnvironmentFile
=
/run/genieacs/config.env
ConditionFileNotEmpty
=
/run/genieacs/config.json
Restart
=
always
ExecStartPre
=
/usr/sbin/genieacs-init
ExecStart
=
/srv/genieacs/bin/genieacs-fs
...
...
@@ -72,8 +71,7 @@ Description=GenieACS north bound interface
[Service]
Environment
=
"NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty
=
/run/genieacs/config.env
EnvironmentFile
=
/run/genieacs/config.env
ConditionFileNotEmpty
=
/run/genieacs/config.json
Restart
=
always
ExecStartPre
=
/usr/sbin/genieacs-init
ExecStart
=
/srv/genieacs/bin/genieacs-nbi
...
...
@@ -90,8 +88,7 @@ Description=GenieACS user interface
[Service]
Environment
=
"NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty
=
/run/genieacs/config.env
EnvironmentFile
=
/run/genieacs/config.env
ConditionFileNotEmpty
=
/run/genieacs/config.json
Restart
=
always
ExecStartPre
=
/usr/sbin/genieacs-init
ExecStart
=
/srv/genieacs/bin/genieacs-ui
...
...
genieacs-init
View file @
7e40b73e
...
...
@@ -9,24 +9,26 @@ FS=`$UCI_GET genieacs.settings.fs_interface`
UI
=
`
$UCI_GET
genieacs.settings.ui_interface
`
SECRET
=
`
$UCI_GET
genieacs.settings.secret
`
if
[
!
-z
$MONGODB
]
&&
[
!
-z
$NBI
]
&&
[
!
-z
$FS
]
;
then
cat
<<
EOF
> /run/genieacs/config.env
MONGODB_CONNECTION_URL=
$MONGODB
EXT_DIR=/srv/genieacs/ext
EXT_TIMEOUT=3000
CWMP_INTERFACE=
$CWMP
CWMP_PORT=7547
CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log
NBI_INTERFACE=
$NBI
NBI_PORT=7557
NBI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-nbi-access.log
FS_INTERFACE=
$FS
FS_PORT=7567
FS_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-fs-access.log
UI_INTERFACE=
$UI
UI_PORT=80
UI_JWT_SECRET=
$SECRET
ACS_UI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-ui-access.log
DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
cat
<<
EOF
> /run/genieacs/config.json
{
"MONGODB_CONNECTION_URL": "
$MONGODB
",
"EXT_DIR": "/srv/genieacs/ext",
"EXT_TIMEOUT": "3000",
"CWMP_INTERFACE": "
$CWMP
",
"CWMP_PORT": "7547",
"CWMP_ACCESS_LOG_FILE": "/var/log/genieacs/genieacs-cwmp-access.log",
"NBI_INTERFACE": "
$NBI
",
"NBI_PORT": "7557",
"NBI_ACCESS_LOG_FILE": "/var/log/genieacs/genieacs-nbi-access.log",
"FS_INTERFACE": "
$FS
",
"FS_PORT": "7567",
"FS_ACCESS_LOG_FILE": "/var/log/genieacs/genieacs-fs-access.log",
"UI_INTERFACE": "
$UI
",
"UI_PORT": "80",
"UI_JWT_SECRET": "
$SECRET
",
"ACS_UI_ACCESS_LOG_FILE": "/var/log/genieacs/genieacs-ui-access.log",
"DEBUG_FILE": "/var/log/genieacs/genieacs-debug.yaml"
}
EOF
else
rm
-f
/run/genieacs/config.json
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment