1
0
Fork 0
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:
anmol26s 2021-02-14 05:39:24 +05:30
parent b53a15cc5a
commit 4fe593702a
2 changed files with 35 additions and 3 deletions

View file

@ -115,7 +115,7 @@ pushd "$final_path"
echo linking $base
ln -s ../extend/addon/hzaddons/$base $base
done
done
popd

View file

@ -72,7 +72,39 @@ fi
ynh_script_progression --message="Upgrading source files..."
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
else