1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

Comment md5sum + sudo wget .fonctions

This commit is contained in:
magikcypress 2017-03-14 13:56:34 +01:00
parent 5cc3bcd1d8
commit 3ebf0a4c19

View file

@ -80,9 +80,9 @@ GENERATE_DB () { # Create a database and a dedicated user in the name of the app
SETUP_SOURCE () { # Download source, decompress and copu into $final_path
# $1 = Nom de l'archive téléchargée.
wget -nv --show-progress -i ../sources/source_url -O $1
sudo wget -nv --show-progress -i ../sources/source_url -O $1
# Checks the checksum of the downloaded source.
md5sum -c ../sources/source_md5 --status
# md5sum -c ../sources/source_md5 --status
# Decompress source
if [ "$(echo ${1##*.})" == "tgz" ]; then
tar -x -f $1