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
|
@ -115,7 +115,7 @@ pushd "$final_path"
|
|||
echo linking $base
|
||||
|
||||
ln -s ../extend/addon/hzaddons/$base $base
|
||||
done
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
|
|
|
@ -72,8 +72,40 @@ 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`
|
||||
chmod -R 777 $final_path/store
|
||||
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
|
||||
|
||||
# Create a temporary directory
|
||||
|
|
Loading…
Add table
Reference in a new issue