Skip to content

Commit a536eea

Browse files
committed
Fix message
1 parent c35127d commit a536eea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/rsync_instance.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@
167167
if (empty($dirroot) || empty($instance) || empty($mode)) {
168168
print "Update an instance on remote server with new ref version.\n";
169169
print "Usage: $script_file source_root_dir sellyoursaas_instance (test|confirm|confirmunlock|diff|diffadd|diffchange|testclean|confirmclean|confirmwithtestdir)\n";
170+
print "\n";
171+
print $script_file." source_root_dir sellyoursaas_instance diff|diffadd|diffchange to compare current instance with target to update\n";
172+
print $script_file." source_root_dir sellyoursaas_instance confirmclean to make update and clean old files not into new repository\n";
173+
print $script_file." source_root_dir sellyoursaas_instance confirmwithtest to make update including the directory /test\n";
174+
170175
print "Return code: 0 if success, <>0 if error\n";
176+
print "\n";
171177
exit(-1);
172178
}
173179

@@ -331,7 +337,7 @@
331337
if ($connection) {
332338
//print $object->instance." ".$object->username_os." ".$object->password_os."<br>\n";
333339
if (! @ssh2_auth_password($connection, $object->username_os, $object->password_os)) {
334-
dol_syslog("Could not authenticate with username ".$username." . and password ".preg_replace('/./', '*', $password), LOG_ERR);
340+
dol_syslog("Could not authenticate with username ".$object->username_os." . and password ".preg_replace('/./', '*', $object->password_os), LOG_ERR);
335341
exit(-5);
336342
} else {
337343
$sftp = ssh2_sftp($connection);

0 commit comments

Comments
 (0)