|
@@ -9,7 +9,7 @@ DIR="/var/local/log/lcmlog-data"
|
|
|
|
|
|
usage()
|
|
|
{
|
|
|
- echo "Usage: $0 [-i|-l]"
|
|
|
+ echo "Usage: $0 [-i|-l|-u]"
|
|
|
echo "Use -h option to show the help message."
|
|
|
}
|
|
|
|
|
@@ -24,8 +24,10 @@ method_help()
|
|
|
echo "Usage: $0 [option]"
|
|
|
echo
|
|
|
echo "Options:"
|
|
|
- echo " -i Initialization of the folder structure in default directory ($DIR) (init)"
|
|
|
- echo " -l See who is authorized using getent (authlookup)"
|
|
|
+ echo " -i Initialization of the folder structure in default directory ($DIR)"
|
|
|
+ echo " -l See who is authorized in auth folder using getent"
|
|
|
+ echo " -u Update folders ACL"
|
|
|
+ echo
|
|
|
echo " -h Show this help"
|
|
|
}
|
|
|
|
|
@@ -107,7 +109,20 @@ method_authlookup()
|
|
|
done
|
|
|
|
|
|
else
|
|
|
- echo "Folder not present. Use the -i option to create it."
|
|
|
+ echo "auth folder not present. Use the -i option to create it."
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+######
|
|
|
+
|
|
|
+
|
|
|
+method_updateACL()
|
|
|
+{
|
|
|
+ if [ -d $DIR/auth ] && [ -d $DIR/data ] && [ -d $DIR/logs ]; then
|
|
|
+ echo "OK. Method incomplete."
|
|
|
+ else
|
|
|
+ echo "Error: some folders are missing. Use the -i option to create missing folders."
|
|
|
fi
|
|
|
}
|
|
|
|