Install to /usr/share/airtime/php per default
The added php subdir lets us keep the vendor and airtime_mvc in the same relative position to each other while keeping everything in /usr/share/$name. This does not yet take care of cleaning any files left at the old locations, taking care of those would make this installer even more bloated and should be the responsability of apt packages.
This commit is contained in:
parent
21a319767f
commit
b79ab33de2
1 changed files with 8 additions and 6 deletions
14
install
14
install
|
@ -377,14 +377,16 @@ if [ "$in_place" = "t" ]; then
|
||||||
web_root=${AIRTIMEROOT}/airtime_mvc/public
|
web_root=${AIRTIMEROOT}/airtime_mvc/public
|
||||||
elif [ -n "$web_root" ]; then
|
elif [ -n "$web_root" ]; then
|
||||||
verbose "\n * Creating Apache web root directory..."
|
verbose "\n * Creating Apache web root directory..."
|
||||||
cp -R ${AIRTIMEROOT}/airtime_mvc/* ${web_root}
|
cp -R ${AIRTIMEROOT}/airtime_mvc ${web_root}
|
||||||
web_root=${web_root}/public/
|
cp -R ${AIRTIMEROOT}/vendor ${web_root}
|
||||||
|
web_root=${web_root}/airtime_mvc/public/
|
||||||
else
|
else
|
||||||
verbose "\n * Creating default Apache web root directory /usr/share/airtime/..."
|
verbose "\n * Creating default Apache web root directory /usr/share/airtime/php..."
|
||||||
web_root="/usr/share/airtime"
|
web_root="/usr/share/airtime/php"
|
||||||
mkdir -p ${web_root}
|
mkdir -p ${web_root}
|
||||||
cp -R ${AIRTIMEROOT}/airtime_mvc/* ${web_root}
|
cp -R ${AIRTIMEROOT}/airtime_mvc ${web_root}
|
||||||
web_root=${web_root}/public/
|
cp -R ${AIRTIMEROOT}/vendor ${web_root}
|
||||||
|
web_root=${web_root}/airtime_mvc/public/
|
||||||
fi
|
fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue