mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Fixed install & install
This commit is contained in:
parent
b53a15cc5a
commit
4fe593702a
2 changed files with 35 additions and 3 deletions
|
@ -72,7 +72,39 @@ fi
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
|
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
|
||||||
`cd $final_path && util/udall`
|
pushd "$final_path"
|
||||||
|
git pull
|
||||||
|
cd extend/addon/hzaddons
|
||||||
|
git pull
|
||||||
|
cd ../../..
|
||||||
|
filelist=(`ls extend/addon/hzaddons`)
|
||||||
|
cd addon
|
||||||
|
for a in "${filelist[@]}" ; do
|
||||||
|
base=`basename $a`
|
||||||
|
if [ $base = '.git' ]; then
|
||||||
|
#echo 'ignoring git'
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
|
if [ ! -d ../extend/addon/hzaddons/$base ]; then
|
||||||
|
#echo $a 'not a directory'
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
|
if [ -x $base ]; then
|
||||||
|
#echo $base 'file exists'
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo linking $base
|
||||||
|
|
||||||
|
ln -s ../extend/addon/hzaddons/$base $base
|
||||||
|
done
|
||||||
|
for x in `ls` ; do
|
||||||
|
if [ -L "$x" ] && ! [ -e "$x" ]; then
|
||||||
|
echo "removing dead symlink $x" ;
|
||||||
|
rm -- "$x";
|
||||||
|
fi;
|
||||||
|
done
|
||||||
|
popd
|
||||||
chmod -R 777 $final_path/store
|
chmod -R 777 $final_path/store
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue