Skip to content

Commit 0a53178

Browse files
committed
Remove completely deprecated dir /tmp
1 parent b79bd44 commit 0a53178

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

doc/Documentation SellYourSaas - Master and Deployment Servers - EN.asciidoc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,14 +3277,6 @@ cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas/spam/blacklistfrom /ho
32773277
cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas/spam/blacklistcontent /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/blacklistcontent;
32783278
chmod a+rwx /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam; chmod a+rw /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/*;
32793279
3280-
3281-
mkdir /tmp/spam;
3282-
cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/blacklistmail /tmp/spam/;
3283-
cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/blacklistip /tmp/spam/;
3284-
cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/blacklistfrom /tmp/spam/;
3285-
cp -p /home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam/blacklistcontent /tmp/spam/;
3286-
chmod a+rwx /tmp/spam; chmod a+rw /tmp/spam/*
3287-
chown admin:www-data /tmp/spam/*
32883280
---------------
32893281

32903282

@@ -5947,7 +5939,7 @@ Check in file */etc/apparmor.d/usr.sbin.apache2* that */etc/passwd* is not denie
59475939
59485940
If you got this error
59495941
5950-
ERROR /tmp/spam/... can't be read.
5942+
ERROR /tmp/... can't be read.
59515943
59525944
Check that the PrivateTmp mode is false into the launcher of apache2.
59535945

scripts/batch_detect_evil_instances.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
if ($tmpline[0] == 'maxemailperdaypaid') {
171171
$maxemailperdaypaid = $tmpline[1];
172172
}
173-
if ($tmpline[0] == 'pathtospamdir') {
173+
if ($tmpline[0] == 'pathtospamdir' && !empty($tmpline[1])) {
174174
$pathtospamdir = $tmpline[1];
175175
}
176176
}

scripts/phpsendmail.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// The directory $pathtospamdir must have permission rwxrwxrwx and not rwxrwxrwt
1818
$pathtospamdir = '/home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam';
19-
//$pathtospamdir = '/tmp/spam';
2019

2120
//* Get the email content
2221
$mail='';
@@ -53,7 +52,7 @@
5352
if ($tmpline[0] == 'maxemailperdaypaid') {
5453
$maxemailperdaypaid = $tmpline[1];
5554
}
56-
if ($tmpline[0] == 'pathtospamdir') {
55+
if ($tmpline[0] == 'pathtospamdir' && !empty($tmpline[1])) {
5756
$pathtospamdir = $tmpline[1];
5857
}
5958
}

scripts/smtp_watchdog_daemon1.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
if ($tmpline[0] == 'maxemailperdaypaid') {
7171
$maxemailperdaypaid = $tmpline[1];
7272
}
73-
if ($tmpline[0] == 'pathtospamdir') {
73+
if ($tmpline[0] == 'pathtospamdir' && !empty($tmpline[1])) {
7474
$pathtospamdir = $tmpline[1];
7575
}
7676
}
@@ -183,9 +183,6 @@
183183
if (empty($EMAILTO)) {
184184
$EMAILTO='supervision@'.$DOMAIN;
185185
}
186-
if (empty($pathtospamdir)) {
187-
$pathtospamdir="/home/admin/wwwroot/dolibarr_documents/sellyoursaas_local/spam";
188-
}
189186

190187
$PID=getmypid();
191188
$scriptdir=dirname(__FILE__);

0 commit comments

Comments
 (0)