浏览代码

change username during reinstall

andre 4 年之前
父节点
当前提交
ddc34b95c2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/UI/Reinstall/Providers/TemplateInstallProvider.php

+ 1 - 1
app/UI/Reinstall/Providers/TemplateInstallProvider.php

@@ -118,7 +118,7 @@ class TemplateInstallProvider extends BaseDataProvider implements ClientArea, Ad
         }
         }
         elseif($this->configuration()->isQemu() && $this->configuration()->getCiuser()){
         elseif($this->configuration()->isQemu() && $this->configuration()->getCiuser()){
             $ciuser =  $this->formData['username'] ? $this->formData['username'] : $vm->config()['ciuser'];
             $ciuser =  $this->formData['username'] ? $this->formData['username'] : $vm->config()['ciuser'];
-            $this->hosting()->update(['username' => $ciuser ?: 'root' ]]);
+            $this->hosting()->update(['username' => $ciuser ?: 'root' ]);
         }
         }
         $arguments = [
         $arguments = [
             'hostingId'  => $this->getWhmcsParamByKey('serviceid'),
             'hostingId'  => $this->getWhmcsParamByKey('serviceid'),