Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feudalClientInstaller
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
feudal
feudalClientInstaller
Commits
59986963
Commit
59986963
authored
Jan 23, 2020
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pip3 install command and beautify output
parent
c242e23a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
install.sh
install.sh
+19
-13
No files found.
install.sh
View file @
59986963
...
...
@@ -50,8 +50,9 @@ echo "Adding user ${USER}"
useradd
-m
${
USER
}
>
/dev/null 2>&1
RV
=
$?
case
"
$RV
"
in
0-8
)
echo
"Error creating user"
;
exit
1
;;
10-14
)
echo
"Error creating user"
;
exit
1
;;
0-8
)
echo
" Error creating user"
;
exit
1
;;
9
)
echo
" user already existed"
;;
10-14
)
echo
" Error creating user"
;
exit
1
;;
esac
### Install feudalClient
...
...
@@ -86,8 +87,11 @@ git co ${ADAPTER_BRANCH} > /dev/null 2>&1
git pull
>
/dev/null 2>&1
./setup.py sdist
>
/dev/null
FULLNAME
=
`
python3 setup.py
--fullname
`
${
PIP
}
install
dist/
$FULLNAME
.tar.gz
>
/dev/null
echo
-e
"feudalAdapterLDF installed"
${
PIP
}
install
-U
dist/
$FULLNAME
.tar.gz
>
/dev/null 2>&1
||
{
echo
-e
"
\n\n
${
PIP
}
${
PIP_PARAMS
}
install dist/
$FULLNAME
.tar.gz => FAILED"
exit
1
}
echo
-e
" Done"
# => ldf_adapter is now in $PATH
...
...
@@ -102,17 +106,19 @@ test -d ${ETC_CONFIG} || {
### Install Config Files
test
-e
${
ETC_CONFIG
}
/ldf_adapter.conf
||
{
echo
"Installing a template for ldf_adapter.conf in
${
ETC_CONFIG
}
"
echo
" => You need to edit this file"
cp
feudalAdapterLdf/ldf_adapter_template.conf
${
ETC_CONFIG
}
test
-e
${
ETC_CONFIG
}
/ldf_adapter_template.conf
||
{
echo
"Installing a template for ldf_adapter.conf in
${
ETC_CONFIG
}
"
cp
feudalAdapterLdf/ldf_adapter_template.conf
${
ETC_CONFIG
}
}
}
popd
>
/dev/null
test
-e
${
ETC_CONFIG
}
/client_config.json
||
{
echo
"Installing a template for client_config_template.json in
${
ETC_CONFIG
}
"
echo
" => You need to edit this file"
cp
client_config_template.json
${
ETC_CONFIG
}
test
-e
${
ETC_CONFIG
}
/client_config_template.json
||
{
echo
"Installing a template for client_config_template.json in
${
ETC_CONFIG
}
"
cp
client_config_template.json
${
ETC_CONFIG
}
}
}
test
-e
${
ETC_CONFIG
}
/environment
||
{
echo
"Installing a template for environment in
${
ETC_CONFIG
}
"
...
...
@@ -135,10 +141,10 @@ test -e ${LIB_SYSD}/${SERVICE}.service || {
cp
${
SYSD_SERVICE
}
${
LIB_SYSD
}
/
${
SERVICE
}
.service
systemctl daemon-reload
}
echo
-e
"Done
\n
Restarting
${
SYSD_SERVICE
}
"
systemctl
enable
$SERVICE
echo
-e
"
Done
\n
Restarting
${
SYSD_SERVICE
}
"
systemctl
enable
$SERVICE
>
/dev/null 2>&1
systemctl restart
$SERVICE
echo
"Done"
echo
"
Done"
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