Browse Source

Updated method init

Paolo Galli 4 years ago
parent
commit
c92b8305e6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lcmlog-server-utils

+ 4 - 0
lcmlog-server-utils

@@ -43,6 +43,7 @@ method_init()
 		if [ -d $DIR/auth ]; then
 			echo "Folder $DIR/auth already present. Exit."
 		else
+			echo "Setting up auth folder..."
 			mkdir $DIR/auth
 			touch $DIR/auth/UPDATE
 			mkdir $DIR/auth/150
@@ -58,6 +59,7 @@ method_init()
 		if [ -d $DIR/data ]; then
 			echo "Folder $DIR/data already present. Exit."
 		else
+			echo "Setting up data folder..."
 			mkdir $DIR/data
 			echo "Completed."
 		fi
@@ -66,11 +68,13 @@ method_init()
 		if [ -d $DIR/logs ]; then
 			echo "Folder $DIR/logs already present. Exit."
 		else
+			echo "Setting up logs folder..."
 			mkdir $DIR/logs
 			echo "Completed."
 		fi
 
 		# chmod to let everyone write their logs
+		echo
 		echo "To correct run the program, you should set the following permissions:"
 		echo "  755 for $(cd $DIR/.. && pwd) , $DIR and $DIR/auth"
 		echo "  777 for $DIR/data and $DIR/logs"