mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
23 lines
422 B
Text
23 lines
422 B
Text
set -e
|
|
|
|
# Retrieve arguments
|
|
domain=$1
|
|
path=$2
|
|
|
|
# Check domain/path availability
|
|
sudo yunohost app checkurl $domain$path -a noalyss
|
|
if [[ ! $? -eq 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
path=${path%/}
|
|
|
|
sudo yunohost app setting dolibarr version -v "3.8.0"
|
|
|
|
final_path=/var/www/noalyss
|
|
sudo mkdir -p $final_path
|
|
sudo cp -a ../sources/dolibarr/* $final_path
|
|
|
|
sudo chown -R www-data: $final_path
|
|
|
|
touch $final_path/dolibarr/conf/conf.php
|