mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-08-07 15:29:50 +02:00
feature change: seprate commands using \n
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
<label class="col-sm-3 control-label">{% trans "Commands" %}</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea ng-model="$parent.commands"
|
||||
placeholder="Add Commands to run after every commit, separate commands using comma."
|
||||
placeholder="Add Commands to run after every commit, each line must contain one command only."
|
||||
rows="4"
|
||||
class="form-control">{$ currentCommands $}</textarea>
|
||||
</div>
|
||||
|
||||
@@ -3402,8 +3402,8 @@ StrictHostKeyChecking no
|
||||
|
||||
GitLogs(owner=self.masterWebsite, type='INFO', message='Running commands after successful git commit..').save()
|
||||
|
||||
if self.commands.find(',') > -1:
|
||||
commands = self.commands.split(',')
|
||||
if self.commands.find('\n') > -1:
|
||||
commands = self.commands.split('\n')
|
||||
|
||||
for command in commands:
|
||||
GitLogs(owner=self.masterWebsite, type='INFO',
|
||||
@@ -4120,8 +4120,8 @@ StrictHostKeyChecking no
|
||||
|
||||
GitLogs(owner=self.web, type='INFO', message='Running commands after successful git commit..').save()
|
||||
|
||||
if gitConf['commands'].find(',') > -1:
|
||||
commands = gitConf['commands'].split(',')
|
||||
if gitConf['commands'].find('\n') > -1:
|
||||
commands = gitConf['commands'].split('\n')
|
||||
|
||||
for command in commands:
|
||||
GitLogs(owner=self.web, type='INFO',
|
||||
|
||||
Reference in New Issue
Block a user