This commit is contained in:
2025-06-12 21:59:24 +05:00
parent fa4cf3eebc
commit 0248aa7422
2 changed files with 1 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ class GitPullController extends Controller
{ {
public function index() public function index()
{ {
$result = Process::path(base_path())->run('bash git_pull.sh'); $result = Process::path(base_path())->run('sudo su; bash git_pull.sh');
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput(); return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();

View File

@@ -1,4 +1,3 @@
sudo su
cd /var/www/online.tbbank.gov.tm cd /var/www/online.tbbank.gov.tm
git pull git pull
exit exit