Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
a68bc52c
Commit
a68bc52c
authored
Sep 06, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/etc/cron.d/pveupdate: always write file in postinstall
so that we can change times in future
parent
d6b52850
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile
bin/Makefile
+1
-1
postinst
debian/postinst
+7
-7
No files found.
bin/Makefile
View file @
a68bc52c
include
../defines.mk
SUBDIRS
=
init.d
cron
ocf
test
SUBDIRS
=
init.d ocf
test
SERVICES
=
pvestatd pveproxy
CLITOOLS
=
vzdump pvesubscription
...
...
debian/postinst
View file @
a68bc52c
...
...
@@ -50,13 +50,13 @@ case "$1" in
fi
# create new daily randomize update cronjob if not exist
if
!(
test
-e
/etc/cron.d/pveupdate
)
;
then
MIN
=
"
$(
shuf
-i
0-59
-n
1
)
"
HOUR
=
"
$(
shuf
-i
6-10
-n
1
)
"
echo
"Create cron job for daily update"
printf
"
${
MIN
}
${
HOUR
}
* * * root /usr/bin/pveupdate
\n\n
"
>
/etc/cron.d
/pveupdate
fi
MIN
=
"
$(
shuf
-i
0-59
-n
1
)
"
HOUR
=
"
$(
shuf
-i
6-10
-n
1
)
"
echo
"Create cron job for daily update"
cat
<<
EOF
>/etc/cron.d/pveupdate
# automatically generated - do not edit
${
MIN
}
${
HOUR
}
* * * root /usr/bin
/pveupdate
EOF
if
test
!
-e
/var/lib/pve-manager/apl-info/download.proxmox.com
;
then
mkdir
-p
/var/lib/pve-manager/apl-info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment