-
Boss Ibrahim Mussa Gregoire commented on merge request !79 at WikiSuite / WikiSuite Packages
()
Thanks @JohnXLivingston for your feedback, I'm going to try something different. and will notify you.
-
John Livingston commented on merge request !79 at WikiSuite / WikiSuite Packages
()
In packages-updates/save_sched.cgi, I can see some code that seems to create the cron job that will use packages-updates/update.pl. This uses the create_wrapper function defined in web-lib-funcs.pl: =head2 create_wrapper(wrapper-path, module, script) Creates a wrapper script which calls a script in some module's directory with the proper webmin environment variables set. This should always be used when setting up a cron job, instead of attempting to run a command in the module directory directly. The parameters are : =item wrapper-path - Full path to the wrapper to create, like /etc/webmin/yourmodule/foo.pl =item module - Module containing the real script to call. =item script - Program within that module for the wrapper to run. =cut sub create_wrapper { my ($path, $mod, $script) = @_; So, it seems there is a way to create a wrapper function for cron jobs. I'm not familiar enough with webmin and wikisuite to fully understand how this cron job should be written in wikisuite. You should ask for some help from a wikisuite/webmin senior dev.
-
John Livingston closed merge request !79: [FIX] remove obsolete virtualmin update cron file. at WikiSuite / WikiSuite Packages
()
We used to get an email with such error message Can't locate ./package-updates-lib.pl at /usr/share/webmin/package-updates/update.pl line 5. on server that has been install using WikiSuite packages. And based on https://github.com/webmin/webmin/commit/e8cd1ca5a7a6bd215e0cbe7390bda622cf627799#diff-fec42dc7572c6d079c356df592a740c3f996d57e336aac706f5223296198d495L9, the process has been set as obsolete for security issue. Related task
-
John Livingston commented on merge request !79 at WikiSuite / WikiSuite Packages
()
@bim-g , I'm not sure that your analysis is correct. The commit you reference has also deleted a update.pl file. Currently, there is still 2 update.pl files in the webmin repository. The error message means that /usr/share/webmin/package-updates/update.pl fails when trying to include ./package-updates-lib.pl (with a relative path). This is because, in the crontab, the current folder is not the correct one. If I try this on one of my wikisuite install: cd /usr/share/webmin/package-updates/ && /usr/share/webmin/package-updates/update.pl Then the require works. But i got another error message: WEBMIN_CONFIG not set at ../web-lib-funcs.pl line 5145. Compilation failed in require at /usr/share/webmin/package-updates/update.pl line 5. So, it seems we also need to set some environment variables. Instead of removing the cron file, please try to find the correct way to call this script.
-
John Livingston approved merge request !79: [FIX] remove obsolete virtualmin update cron file. at WikiSuite / WikiSuite Packages
()
We used to get an email with such error message Can't locate ./package-updates-lib.pl at /usr/share/webmin/package-updates/update.pl line 5. on server that has been install using WikiSuite packages. And based on https://github.com/webmin/webmin/commit/e8cd1ca5a7a6bd215e0cbe7390bda622cf627799#diff-fec42dc7572c6d079c356df592a740c3f996d57e336aac706f5223296198d495L9, the process has been set as obsolete for security issue. Related task
-
Boss Ibrahim Mussa Gregoire opened merge request !79: [FIX] remove obselete virtualmin update cron file. at WikiSuite / WikiSuite Packages
()
We used to get an email with such error message Can't locate ./package-updates-lib.pl at /usr/share/webmin/package-updates/update.pl line 5. on server that has been install using WikiSuite packages. And based on https://github.com/webmin/webmin/commit/e8cd1ca5a7a6bd215e0cbe7390bda622cf627799#diff-fec42dc7572c6d079c356df592a740c3f996d57e336aac706f5223296198d495L9, the process has been set as obsolete for security issue. Related task
-
John Livingston pushed to project branch main at WikiSuite / Zabbix Template
()
John Livingston (c7deed71) at 25 Mar 11:13 Remove duplicate readme.md file.
-
John Livingston pushed to project branch main at WikiSuite / Zabbix Template
()
John Livingston (1e6287b5) at 25 Mar 11:11 Merge branch 'init-structure' into 'main' ... and 2 more commits
-
John Livingston accepted merge request !1: Setup zabbix template structure at WikiSuite / Zabbix Template
()
Setup the skeleton structure of the project Internal tasks: https://avan.tech/item84327 https://avan.tech/item102831
-
John Livingston commented on merge request !1 at WikiSuite / Zabbix Template
()
Probably because you are on windows, were file names are case insensitive. I will fix this in a separate commit.