post_install.sh 282 B

123456789101112
  1. #!/bin/bash
  2. # Add a Redis User
  3. useradd --system --shell /sbin/nologin --no-create-home --comment "Redislabs User" redislabs
  4. # Create necessary directories
  5. mkdir -p /db/data
  6. mkdir -p /db/errorlog
  7. chown -R redislabs:redislabs /db/data
  8. chown -R redislabs:redislabs /data/errorlog