Commit 30237b7e authored by Silvio Rhatto's avatar Silvio Rhatto

Fixing some definitions at backupninja::server::sandbox

parent e0982845
......@@ -85,7 +85,7 @@ class backupninja::server {
}
}
}
if !defined(File["$real_ssh_dir"]) {
if !defined(File["${real_ssh_dir}/${real_authorized_keys_file}"]) {
@@file { "${real_ssh_dir}/${real_authorized_keys_file}":
ensure => present,
mode => 0644, owner => 0, group => 0,
......@@ -96,7 +96,7 @@ class backupninja::server {
}
case $uid {
false: {
if !defined(File["$real_ssh_dir"]) {
if !defined(File["$real_user"]) {
@@user { "$user":
ensure => "present",
gid => "$gid",
......@@ -111,8 +111,8 @@ class backupninja::server {
}
}
default: {
if !defined(File["$real_ssh_dir"]) {
@@user { "$user":
if !defined(File["$real_user"]) {
@@user { "$real_user":
ensure => "present",
uid => "$uid",
gid => "$gid",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment