Commit 1ab9cdb4 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#179] Create the user on install

parent b3688875
......@@ -238,14 +238,17 @@ remove_use_lib();
change_mod();
gzip_docs();
gzip_man();
chown_files($DEBIAN,0755);
chown_files($DEBIAN,0644);
chown_files('etc');
chown_files('lib');
chown_files('var/lib/ravada');
chown_files('var');
chown_files('DEBIAN',0755);
chown_files('DEBIAN/conffiles',undef,0644);
#chown_files('usr/share/doc/ravada');
chown_files('usr/share/ravada/public');
chown_files('usr/share/ravada/templates');
chown_files('usr');
chown_files('usr/sbin',0755,0755);
#chown_files('usr/share/ravada/public');
#chown_files('usr/share/ravada/templates');
chown_files('etc');
chown_files('lib');
#chown_files('lib/systemd');
......
Package: ravada
Version: 0.1.3
Version: 0.2.3
Architecture: all
Section: utils
Priority: optional
......
#!/bin/sh
# postinst script for ravada
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
id ravada 2> /dev/null || useradd --system ravada
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
......@@ -41,6 +41,13 @@ edge, non-packaged, release.
# Mysql Database
## MySQL server
It is required a MySQL server, it can be installed in another host or in the
same one as the ravada package.
$ sudo apt-get install mysql-server
## MySQL user
Create a database named "ravada". in this stage the system wants you to identify a password for your sql.
......@@ -61,18 +68,6 @@ at the previous step.
user: rvd_user
password: THE PASSWORD CHOSEN BEFORE
## Create tables
Review and run the sql files from the sql dir. If you are using a packaged
release you can find these files at _/usr/share/doc/ravada/doc_. For development,
the files are at the _sql_ directory inside the sources.
$ cd /usr/share/doc/ravada/sql/mysql
$ cat *.sql | mysql -p -u root ravada
$ cd ../data
$ cat *.sql | mysql -p -u root ravada
# Ravada web user
Add a new user for the ravada web. Use rvd\_back to create it.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment