Revision 8944
Added by Jing Tao about 10 years ago
install-java7-tomcat7.sh | ||
---|---|---|
151 | 151 |
|
152 | 152 |
echo "we need to do some work since the new version of apache only load the site files with .conf extension in the sites-enabled directory" |
153 | 153 |
echo "delete all links which doesn't end with .conf in the site-enabled directory since they can't be loaded" |
154 |
sudo find $APACHE_ENABLED_SITES_DIR -type f ! -name "*.conf" -delete
|
|
154 |
sudo find $APACHE_ENABLED_SITES_DIR -type l ! -name "*.conf" -delete
|
|
155 | 155 |
|
156 | 156 |
echo "add .conf to the files which don't end with .conf or .bak or .org" |
157 | 157 |
for i in $(sudo find $APACHE_AVAILABLE_SITES_DIR -type f \( ! -name "*.conf" -a ! -name "*.bak" -a ! -name "*.org" \)); |
Also available in: Unified diff
Find files of which type is link.