1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

source en téléchargement

This commit is contained in:
Maniack Crudelis 2016-06-05 18:49:47 +02:00
parent 2416ee9710
commit cd00954c07
5 changed files with 9 additions and 2 deletions

View file

@ -91,10 +91,14 @@ sudo mkdir "$final_path"
sudo yunohost app setting $app final_path -v $final_path sudo yunohost app setting $app final_path -v $final_path
# Télécharge la source
wget -nv --show-progress -i ../sources/source_url -O wordpress.tar.gz
# Vérifie la somme de contrôle de la source téléchargée.
md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" && false)
# Décompresse la source # Décompresse la source
tar -x -f ../sources/wordpress.tar.gz tar -x -f wordpress.tar.gz
# Copie les fichiers sources # Copie les fichiers sources
sudo cp -a wordpress/. "$final_path" sudo cp -a $(cat ../sources/source_dir)/. "$final_path"
# Copie les fichiers additionnels ou modifiés. # Copie les fichiers additionnels ou modifiés.
sudo cp -a ../sources/ajouts/. "$final_path" sudo cp -a ../sources/ajouts/. "$final_path"
# Et copie le fichier de config nginx # Et copie le fichier de config nginx

1
sources/source_dir Normal file
View file

@ -0,0 +1 @@
wordpress

1
sources/source_md5 Normal file
View file

@ -0,0 +1 @@
056da124260ed5b4465ec1fb2f9b7155 wordpress.tar.gz

1
sources/source_url Normal file
View file

@ -0,0 +1 @@
https://wordpress.org/wordpress-4.5.2.tar.gz

Binary file not shown.