Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
httpd-php
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fpfis
httpd-php
Merge requests
!95
Deleted scripts/cron-run.sh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Deleted scripts/cron-run.sh
FPFISSUPP-16791
into
master
Overview
0
Commits
2
Pipelines
3
Changes
2
Merged
gervasek
requested to merge
FPFISSUPP-16791
into
master
2 years ago
Overview
0
Commits
2
Pipelines
3
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 1
bab5c419
2 years ago
master (base)
and
latest version
latest version
82c1f788
2 commits,
2 years ago
version 1
bab5c419
1 commit,
2 years ago
2 files
+
4
−
36
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
scripts/cron-run.sh deleted
100755 → 0
+
0
−
32
Options
#!/bin/bash
FILE
=
"/tmp/cron_disabled"
COMMAND_NAME
=
'Drush cron'
DRUSH
=
"
$(
which drush
)
--quiet --root=/var/www/html/ --uri=https://
${
VIRTUAL_HOST
}
"
cmd_executer
()
{
bash /scripts/cron.sh
}
timestamp
()
{
date
+
'[%d-%m-%Y %H:%M:%S]'
}
cmd_executer_logger
()
{
cmd_executer
>
>(
sed
"s/^/
$(
timestamp
)
INFO:
${
SCRIPT_NAME
}
- /"
)
2>
>(
sed
"s/^/
$(
timestamp
)
ERROR:
${
SCRIPT_NAME
}
- /"
>
&2
)
cmd_executer_exit_code
=
$?
sync
return
$cmd_executer_exit_code
}
echo
"
$(
timestamp
)
INFO:
${
SCRIPT_NAME
}
started."
if
[
-f
"
$FILE
"
]
;
then
echo
"
$(
timestamp
)
ERROR:
${
SCRIPT_NAME
}
Cron disabled !"
else
if
cmd_executer_logger
;
then
echo
"
$(
timestamp
)
INFO:
${
SCRIPT_NAME
}
stopped."
else
echo
"
$(
timestamp
)
ERROR:
${
SCRIPT_NAME
}
failed."
exit
1
fi
fi
\ No newline at end of file
Loading