From 21a98d972420d39a9d7a7b5283d18272a4162ae7 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 16 May 2022 07:01:53 +0100 Subject: [PATCH] Temp fix in cron.php for new installs and cleanup in post.php --- Rocksolid_Light/rocksolid/post.php | 2 +- Rocksolid_Light/rslight/scripts/cron.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index f094704..34b2841 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -170,7 +170,7 @@ if ($type=="new") { if ($type=="post") { $show=0; if (!$CONFIG['synchronet']) { - if (check_bbs_auth(trim($name), $userpass)==FALSE) { + if (check_bbs_auth(trim($name), $userpass) == FALSE) { $type="retry"; $error=$text_error["auth_error"]; } diff --git a/Rocksolid_Light/rslight/scripts/cron.php b/Rocksolid_Light/rslight/scripts/cron.php index 1d331a8..0cb36e4 100755 --- a/Rocksolid_Light/rslight/scripts/cron.php +++ b/Rocksolid_Light/rslight/scripts/cron.php @@ -40,6 +40,12 @@ @chown($webtmp, $CONFIG['webserver_user']); @chgrp($webtmp, $CONFIG['webserver_user']); +# Fix this. It shouldn't be necessary + $overview = $spooldir.'/articles-overview.db3'; + touch($overview); + @chown($overview, $CONFIG['webserver_user']); + @chgrp($overview, $CONFIG['webserver_user']); + /* Change to non root user */ $uinfo=posix_getpwnam($CONFIG['webserver_user']); change_identity($uinfo["uid"],$uinfo["gid"]);