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

This commit is contained in:
anmol26s 2021-02-14 05:23:04 +05:30
parent d79087ba3b
commit b53a15cc5a

View file

@ -92,7 +92,31 @@ ynh_script_progression --message="Create addon directory inside Hubzilla root fo
# ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" # ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
pushd "$final_path" pushd "$final_path"
`util/add_addon_repo https://framagit.org/hubzilla/addons.git hzaddons` mkdir -p extend/addon/hzaddons
mkdir addon
git clone https://framagit.org/hubzilla/addons.git $final_path/extend/addon/hzaddons
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
popd popd
# 3 - Some extra folders # 3 - Some extra folders