소스 검색

add post install script

Chris Mague 4 년 전
부모
커밋
a53a974fc0
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      packaging/post_install.sh

+ 12 - 0
packaging/post_install.sh

@@ -0,0 +1,12 @@
+#!/bin/bash 
+
+# Add a Redis User
+useradd --system --shell /sbin/nologin --no-create-home --comment "Redis User" redis
+
+# Create necessary directories
+mkdir -p /opt/cpredis
+mkdir -p /var/log/cpredis
+
+chown -R redis:redis /opt/cpredis
+chown -R redis:redis /var/log/cpredis
+