Install script fixes
parent
e32815dde0
commit
d8a756e68a
|
@ -67,6 +67,12 @@ function install() {
|
||||||
chown -R www-data:www-data "$INSTALL_DIR"
|
chown -R www-data:www-data "$INSTALL_DIR"
|
||||||
chmod -R ug+rw "$INSTALL_DIR"
|
chmod -R ug+rw "$INSTALL_DIR"
|
||||||
|
|
||||||
|
# etc configs
|
||||||
|
sed -i -e "s%\('domain'[[:space:]]*=>[[:space:]]*'\)[^']*\('.*\)%\1$DOMAIN\2%g" "$ETC_DIR/jilo-web.conf.php"
|
||||||
|
sed -i -e "s%\('folder'[[:space:]]*=>[[:space:]]*'\)[^']*\('.*\)%\1$WEB_DIR\2%g" "$ETC_DIR/jilo-web.conf.php"
|
||||||
|
sed -i -e "s%\('database'[[:space:]]*=>[[:space:]]*'\)[^']*\('.*\)%\1$ETC_DIR\/jilo-web.db\2%g" "$ETC_DIR/jilo-web.conf.php"
|
||||||
|
sed -i -e "s%\('jilo_database'[[:space:]]*=>[[:space:]]*'\)[^']*\('.*\)%\1$ETC_DIR\/jilo.db\2%g" "$ETC_DIR/jilo-web.conf.php"
|
||||||
|
|
||||||
echo 'Install finished.'
|
echo 'Install finished.'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue