|
|
@ -52,7 +52,7 @@ shorten_property() { |
|
|
|
if [ "$state" = "present" ]; then |
|
|
|
if [ "$state" = "present" ]; then |
|
|
|
cd "$__object/parameter" |
|
|
|
cd "$__object/parameter" |
|
|
|
if grep -q "^${name}:" "$__object/explorer/passwd"; then |
|
|
|
if grep -q "^${name}:" "$__object/explorer/passwd"; then |
|
|
|
for property in $(ls .); do |
|
|
|
for property in *; do |
|
|
|
new_value="$(cat "$property")" |
|
|
|
new_value="$(cat "$property")" |
|
|
|
unset current_value |
|
|
|
unset current_value |
|
|
|
|
|
|
|
|
|
|
@ -113,7 +113,7 @@ if [ "$state" = "present" ]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
echo add >> "$__messages_out" |
|
|
|
echo add >> "$__messages_out" |
|
|
|
for property in $(ls .); do |
|
|
|
for property in *; do |
|
|
|
[ "$property" = "state" ] && continue |
|
|
|
[ "$property" = "state" ] && continue |
|
|
|
[ "$property" = "remove-home" ] && continue |
|
|
|
[ "$property" = "remove-home" ] && continue |
|
|
|
new_value="$(cat "$property")" |
|
|
|
new_value="$(cat "$property")" |
|
|
|