Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
61022cc7
"bin/dm-get-experiment-datasets" did not exist on "63c84256e7a387a8045465cf42c738dc66ebcc61"
Commit
61022cc7
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
modified ds service deploymentto include sudu setup and system account addition to db
parent
5b6a5def
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dm_deploy_ds_web_service.sh
+21
-0
21 additions, 0 deletions
sbin/dm_deploy_ds_web_service.sh
with
21 additions
and
0 deletions
sbin/dm_deploy_ds_web_service.sh
+
21
−
0
View file @
61022cc7
...
@@ -129,6 +129,11 @@ if [ ! -f "$DM_SYSTEM_PASSWORD_FILE" ]; then
...
@@ -129,6 +129,11 @@ if [ ! -f "$DM_SYSTEM_PASSWORD_FILE" ]; then
stty
$sttyOrig
stty
$sttyOrig
echo
$DM_SYSTEM_PASSWORD
>
$DM_SYSTEM_PASSWORD_FILE
echo
$DM_SYSTEM_PASSWORD
>
$DM_SYSTEM_PASSWORD_FILE
chmod
600
$DM_SYSTEM_PASSWORD_FILE
chmod
600
$DM_SYSTEM_PASSWORD_FILE
# Add dm system user to the DB
echo
"Adding
$DM_SYSTEM_USER
system user to the database"
dm-add-user
--username
=
$DM_SYSTEM_USER
--first-name
=
System
--last-name
=
Account
--password-file
=
$DM_SYSTEM_PASSWORD_FILE
||
exit
1
dm-add-user-system-role
--username
=
$DM_SYSTEM_USER
--role-name
=
Administrator
||
exit
1
fi
fi
# Modify version
# Modify version
...
@@ -151,6 +156,22 @@ cmd="cat $DM_ROOT_DIR/etc/setup.sh.template \
...
@@ -151,6 +156,22 @@ cmd="cat $DM_ROOT_DIR/etc/setup.sh.template \
>
$DM_USER_SETUP_FILE
"
>
$DM_USER_SETUP_FILE
"
eval
$cmd
||
exit
1
eval
$cmd
||
exit
1
# Prepare sudo rules
configureSudo
=
"N"
read
-p
"Would you like to configure sudo rules (requires root password) in order to allow the
$DM_SYSTEM_USER
user to manage user groups and file system permissions? [y|N]"
configureSudo
if
[
"
$configureSudo
"
=
"y"
-o
"
$configureSudo
"
=
"Y"
]
;
then
sudoersFile
=
/etc/sudoers.d/
$DM_DB_NAME
echo
"Preparing DM sudo rules file
$sudoersFile
"
cmd
=
"su -c
\"
cat
$DM_ROOT_DIR
/etc/
${
DM_DB_NAME
}
.sudo-rules.template
\
| sed 's?DM_DATA_DIR?
$DM_DATA_DIR
?g'
\
| sed 's?DM_SYSTEM_USER?
$DM_SYSTEM_USER
?g'
\
| sed 's?DM_HOSTNAME?
$DM_HOSTNAME
?g'
\
>
$sudoersFile
\"
"
eval
$cmd
||
exit
1
else
echo
"Will not configure sudo access for
$DM_SYSTEM_USER
."
fi
echo
"Starting web service for
$DM_DB_NAME
"
echo
"Starting web service for
$DM_DB_NAME
"
$DM_WEB_SERVICE_INIT_CMD
start
$DM_DB_NAME
$DM_WEB_SERVICE_INIT_CMD
start
$DM_DB_NAME
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment