summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2014-06-30 17:39:00 +0200
committerChristian Rößler2014-06-30 17:39:00 +0200
commit0de91dabdb638105e99b9795a90e8a524a6bcc3c (patch)
treeb578826b248188c799e30a7396582861f8eedfb2
parent[SSPS] Further tidying: new includes includes/50-add_mysql_dbs_users, (diff)
downloadsetup-scripts-0de91dabdb638105e99b9795a90e8a524a6bcc3c.tar.gz
setup-scripts-0de91dabdb638105e99b9795a90e8a524a6bcc3c.tar.xz
setup-scripts-0de91dabdb638105e99b9795a90e8a524a6bcc3c.zip
[SSPS] Renaming of includes (.inc extension obligatory)
-rw-r--r--satellit_installer/includes/50-add_mysql_dbs_users.inc13
-rw-r--r--satellit_installer/includes/50-add_users_groups.inc10
2 files changed, 23 insertions, 0 deletions
diff --git a/satellit_installer/includes/50-add_mysql_dbs_users.inc b/satellit_installer/includes/50-add_mysql_dbs_users.inc
new file mode 100644
index 0000000..58b7428
--- /dev/null
+++ b/satellit_installer/includes/50-add_mysql_dbs_users.inc
@@ -0,0 +1,13 @@
+add_mysql_dbs_users() {
+ # Now comes mysql stuff; adding databases:
+ mysql_add_db openslx
+ mysql_add_db bwLehrpool
+
+ # $1=user, $2=database, $3=privileges, $4=password
+ mysql_add_user bwLehrpool bwLehrpool "DELETE, INSERT, SELECT, UPDATE" "$MYSQL_BWLEHRPOOL_PASS"
+ mysql_add_user openslx openslx ALL "$MYSQL_OPENSLX_PASS"
+
+ # $1=sql-dumpfile, $2=database
+ mysql_import_dump "$BASEDIR/static_files/db_bwLehrpool_dump.sql" bwLehrpool
+ mysql_import_dump "$BASEDIR/static_files/db_openslx_dump.sql" openslx
+}
diff --git a/satellit_installer/includes/50-add_users_groups.inc b/satellit_installer/includes/50-add_users_groups.inc
new file mode 100644
index 0000000..ae93e58
--- /dev/null
+++ b/satellit_installer/includes/50-add_users_groups.inc
@@ -0,0 +1,10 @@
+add_users_groups() {
+ add_group openslx 1000
+ add_group taskmanager 1001
+ add_group ldadp 1002
+ add_group images 12345
+ add_user openslx 1000 1000
+ add_user taskmanager 1001 1001
+ add_user bwlehrpool 10001 12345
+ add_user ldadp 1002 1002
+}