summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-06-26 11:29:59 +0200
committerKali Kaneko <kali@leap.se>2017-06-26 12:21:29 +0200
commit24a4bee52bc531ab6dcabe7d1234183af2461fa1 (patch)
treec140682c09f909f8ae8994fcc7f3309a868e3cb5
parent2f6fa00af5ae2b89ec4d86f4b783815e6055065f (diff)
[pkg] rename soledad-create-userdb script
-rw-r--r--README.rst4
-rw-r--r--debian/soledad-sudoers2
-rwxr-xr-xpkg/server/soledad-create-userdb (renamed from pkg/server/create-user-db)0
3 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index e5304f2a..66be82fe 100644
--- a/README.rst
+++ b/README.rst
@@ -73,7 +73,7 @@ database administrator. This implies the following side effects:
Database creation:
-----------------
-Can be done via a script located in ``pkg/server/create-user-db``
+Can be done via a script located in ``pkg/server/soledad-create-userdb``
It reads a netrc file that should be placed on
``/etc/couchdb/couchdb-admin.netrc``.
That file holds the admin credentials in netrc format and should be accessible
@@ -82,7 +82,7 @@ only by 'soledad-admin' user.
The debian package will do the following in order to automate this:
* create a user ``soledad-admin``
-* make this script available as ``create-user-db`` in ``/usr/bin``
+* make this script available as ``soledad-create-userdb`` in ``/usr/bin``
* grant restricted sudo access, that only enables user ``soledad`` to call this
exact command via ``soledad-admin`` user.
diff --git a/debian/soledad-sudoers b/debian/soledad-sudoers
index 642497f8..e0d87368 100644
--- a/debian/soledad-sudoers
+++ b/debian/soledad-sudoers
@@ -1,2 +1,2 @@
-Cmnd_Alias SOLEDAD_CREATE_DB = /usr/bin/create-user-db
+Cmnd_Alias SOLEDAD_CREATE_DB = /usr/bin/soledad-create-userdb
soledad ALL=(soledad-admin) NOPASSWD: SOLEDAD_CREATE_DB
diff --git a/pkg/server/create-user-db b/pkg/server/soledad-create-userdb
index 5e0ef5e2..5e0ef5e2 100755
--- a/pkg/server/create-user-db
+++ b/pkg/server/soledad-create-userdb