mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Check if timezone is empty
This commit is contained in:
parent
3d631eb721
commit
b35dd3ebe8
2 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,14 @@ printf "Error empty admin password, installation aborted"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check timezone
|
||||
if [[ -z "$timezone" ]]; then
|
||||
printf "Could not detect Timezone, please check /etc/timezone. Installation aborted"
|
||||
exit 1
|
||||
else
|
||||
printf "Detected Timezone $timezone"
|
||||
fi
|
||||
|
||||
# Check path not empty
|
||||
if [[ -z "$path" ]]; then
|
||||
printf "Error path is empty, installation aborted"
|
||||
|
|
|
@ -7,6 +7,14 @@ port=$(sudo yunohost app setting movim port)
|
|||
public_site=$(sudo yunohost app setting movim public_site)
|
||||
timezone=`cat /etc/timezone`
|
||||
|
||||
# Check timezone
|
||||
if [[ -z "$timezone" ]]; then
|
||||
printf "Could not detect Timezone, please check /etc/timezone. Installation aborted"
|
||||
exit 1
|
||||
else
|
||||
printf "Detected Timezone $timezone"
|
||||
fi
|
||||
|
||||
# Install Movim files
|
||||
final_path=/var/www/movim
|
||||
sudo cp -a ../sources/* $final_path
|
||||
|
|
Loading…
Reference in a new issue