T4B
1
i removed all the files except WordPress here: https://github.com/hestiacp/hestiacp/tree/b195452f713ede5cd7fd7afe53a3f7422676a49e/web/src/app/WebApp/Installers
but after the update removed apps are came back again any fix for this?
only want to give wp for app installer
eris
2
Use a hook to de delete after each update …
2 Likes
T4B
3
needs to create a sh file inside the hooks folder that removes the app folders?
T4B
4
/etc/hestiacp/hooks/post_install.sh
#!/bin/bash
installers_dir="/usr/local/hestia/web/src/app/WebApp/Installers"
folders_to_remove=("Drupal" "Grav" "MediaWiki" "Opencart" "DokuWiki" "Flarum" "Laravel" "Nextcloud" "Prestashop" "Symfony")
for folder in "${folders_to_remove[@]}"; do
folder_path="$installers_dir/$folder"
if [ -d "$folder_path" ]; then
rm -r "$folder_path" > /dev/null 2>&1
fi
done
this file will run after every update right ?
1 Like
Right, just remember to made the file executable.
chmod +x /etc/hestiacp/hooks/post_install.sh
2 Likes
system
Closed
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.