Skip to content
Snippets Groups Projects
Commit ae2d8adf authored by alexandr.kravchenko's avatar alexandr.kravchenko
Browse files

Added logrotate postinst

parent 569ce19b
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,8 @@ else ...@@ -107,6 +107,8 @@ else
echo "[ ] Execute 'systemctl start $DAP_APP_NAME' to start $DAP_APP_NAME service" echo "[ ] Execute 'systemctl start $DAP_APP_NAME' to start $DAP_APP_NAME service"
#USERMAN=`users | awk '{print $1}'` #USERMAN=`users | awk '{print $1}'`
echo "[ ] Enabling logrotate"
ln -sf $DAP_PREFIX/share/logrotate/$DAP_APP_NAME /etc/logrotate.d/$DAP_APP_NAME || true
adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true
#usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'` #usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'`
for username in $(cat /etc/passwd | grep "/home" | cut -d ':' -f1); do for username in $(cat /etc/passwd | grep "/home" | cut -d ':' -f1); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment