1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/strut_ynh.git synced 2024-09-03 20:26:33 +02:00

the actual source is actually in a dist/ subdir x_x

This commit is contained in:
Alexandre Aubin 2023-12-04 21:02:28 +01:00
parent b63ac5b12d
commit cd68259c31

View file

@ -16,7 +16,11 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression --message="Setting up source files..." --weight=4 ynh_script_progression --message="Setting up source files..." --weight=4
ynh_setup_source --dest_dir="$install_dir" tmp_dir=$(mktemp -d)
ynh_setup_source --dest_dir="$tmp_dir"
# Dist is the compiled version. Other directories are source code and tools to build the program
cp -a "$tmp_dir/dist/." "$install_dir/"
ynh_secure_remove --file="$tmp_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"