1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Use of cp /. instead of /*

This commit is contained in:
polytan02 2017-02-24 16:33:37 +00:00
parent 646133fd4a
commit a0028ddf75
3 changed files with 4 additions and 4 deletions

View file

@ -119,7 +119,7 @@ SFILE=`sudo cat ../sources/source_file`;
sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz
sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false)
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
sudo cp -a ../sources/$SFILE/. $final_path/
# Configuration
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config.php

View file

@ -24,12 +24,12 @@ final_phpconf=$(ynh_app_setting_get $app final_phpconf)
# Restore sources, data and permissions
sudo mkdir -p $final_path
sudo cp -a ./sources/* $final_path/
sudo cp -a ./sources/. $final_path/
sudo chown -R www-data: $final_path
# Restore statedir
sudo mkdir -p $statedir
sudo cp -a ./statedir/* $statedir/
sudo cp -a ./statedir/. $statedir/
sudo chown -R www-data:www-data $statedir
# Restore logs, data & permissions

View file

@ -77,7 +77,7 @@ SFILE=`sudo cat ../sources/source_file`;
sudo wget -nv -i ../sources/source_url -O ${SFILE}.tar.gz
sudo md5sum -c ../sources/source_md5 --status || (echo "Corrupt source" >&2 && false)
sudo tar xvf ${SFILE}.tar.gz -C ../sources/
sudo cp -R ../sources/$SFILE/* $final_path
sudo cp -a ../sources/$SFILE/. $final_path/
# Configuration
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config.php