|
34 | 34 | #----------------------------------------------------------# |
35 | 35 |
|
36 | 36 | # Remove apache2 from config |
37 | | -sed -i "/^WEB_PORT/d" $HESTIA/conf/hestia.conf |
38 | | -sed -i "/^WEB_SSL/d" $HESTIA/conf/hestia.conf |
39 | | -sed -i "/^WEB_SSL_PORT/d" $HESTIA/conf/hestia.conf |
40 | | -sed -i "/^WEB_RGROUPS/d" $HESTIA/conf/hestia.conf |
41 | | -sed -i "/^WEB_SYSTEM/d" $HESTIA/conf/hestia.conf |
| 37 | +sed -i "/^WEB_PORT/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 38 | +sed -i "/^WEB_SSL/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 39 | +sed -i "/^WEB_SSL_PORT/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 40 | +sed -i "/^WEB_RGROUPS/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 41 | +sed -i "/^WEB_SYSTEM/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
42 | 42 |
|
43 | 43 | # Remove nginx (proxy) from config |
44 | | -sed -i "/^PROXY_PORT/d" $HESTIA/conf/hestia.conf |
45 | | -sed -i "/^PROXY_SSL_PORT/d" $HESTIA/conf/hestia.conf |
46 | | -sed -i "/^PROXY_SYSTEM/d" $HESTIA/conf/hestia.conf |
| 44 | +sed -i "/^PROXY_PORT/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 45 | +sed -i "/^PROXY_SSL_PORT/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
| 46 | +sed -i "/^PROXY_SYSTEM/d" $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
47 | 47 |
|
48 | 48 | # Add Nginx settings to config |
49 | 49 | echo "WEB_PORT='80'" >> $HESTIA/conf/hestia.conf |
50 | 50 | echo "WEB_SSL='openssl'" >> $HESTIA/conf/hestia.conf |
51 | 51 | echo "WEB_SSL_PORT='443'" >> $HESTIA/conf/hestia.conf |
52 | 52 | echo "WEB_SYSTEM='nginx'" >> $HESTIA/conf/hestia.conf |
53 | 53 |
|
| 54 | +# Add Nginx settings to config |
| 55 | +echo "WEB_PORT='80'" >> $HESTIA/conf/defaults/hestia.conf |
| 56 | +echo "WEB_SSL='openssl'" >> $HESTIA/conf/defaults/hestia.conf |
| 57 | +echo "WEB_SSL_PORT='443'" >> $HESTIA/conf/defaults/hestia.conf |
| 58 | +echo "WEB_SYSTEM='nginx'" >> $HESTIA/conf/defaults/hestia.conf |
| 59 | + |
54 | 60 | rm $HESTIA/conf/defaults/hestia.conf |
55 | 61 | cp $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf |
56 | 62 |
|
|
0 commit comments