-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup_daily
More file actions
32 lines (23 loc) · 958 Bytes
/
cleanup_daily
File metadata and controls
32 lines (23 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
/sbin/service httpd restart &> /dev/null
{
rm -rf /pub/server_temp/*
rm -rf /pub/richness_export/*
export GISBASE=/usr/local/grass-6.4.0svn
export PATH=/usr/local/grass-6.4.0svn/bin:/usr/local/grass-6.4.0svn/scripts:/usr/local/bin:/usr/bin:/bin
export GISRC=/var/www/html/ncgap/grassrc
#$GISBASE = "/usr/local/grass-6.4.0svn";
#$GISRC = "/var/www/html/ncgap/grassrc";
#$PATH = "/usr/local/grass-6.4.0svn/bin:/usr/local/grass-6.4.0svn/scripts:/usr/local/bin:/usr/bin:/bin";
su -p webserv -c "g.mremove -f rast=*"
su -p webserv -c "g.mremove -f rast=*"
export GISRC=/var/www/html/swgap/grassrc
su -p webserv -c "g.mremove -f rast=*"
su -p webserv -c "g.mremove -f rast=*"
export GISRC=/var/www/html/segap/grassrc
su -p webserv -c "g.mremove -f rast=*"
su -p webserv -c "g.mremove -f rast=*"
export GISRC=/var/www/html/prgap/grassrc
su -p webserv -c "g.mremove -f rast=*"
su -p webserv -c "g.mremove -f rast=*"
} >> /dev/null 2>&1