diff -Nur --no-dereference smeserver-webshare-1.0.0.old/createlinks smeserver-webshare-1.0.0/createlinks --- smeserver-webshare-1.0.0.old/createlinks 2002-05-05 22:44:40.000000000 -0400 +++ smeserver-webshare-1.0.0/createlinks 2022-08-01 23:57:14.361000000 -0400 @@ -2,20 +2,25 @@ # This script creates the symlinks needed by this RPM # Specific support exists to create symlinks within e-smith web "panels" # and for links from named "events" directories into the "actions" directory - -sub panel_link -{ - my ($function, $panel) = @_; - - unlink "root/etc/e-smith/web/panels/$panel/cgi-bin/$function"; - symlink("../../../functions/$function", - "root/etc/e-smith/web/panels/$panel/cgi-bin/$function") - or die "Can't symlink to root/etc/e-smith/web/panels/$panel". - "/cgi-bin/$function: $!"; -} +use esmith::Build::CreateLinks qw(:all); #-------------------------------------------------- # functions for user and manager panel #-------------------------------------------------- my $panel = "manager"; panel_link("webshare", $panel); + +my $event = "smeserver-webshare-update"; +event_templates($event, qw( +/etc/httpd/conf/httpd.conf +)); + +event_services($event, qw( + php-fpm restart + httpd-e-smith restart +)); + +use esmith::Build::Backup qw(:all); +backup_includes("smeserver-webshare", qw( +/opt/webshare +)); diff -Nur --no-dereference smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias --- smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:41:07.957000000 -0400 +++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:43:13.776000000 -0400 @@ -27,8 +27,9 @@ $OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n"; $OUT .= " Require valid-user\n"; $OUT .= " AddType application\/x-httpd-php \.php \.php3\n"; - $OUT .= " php_flag magic_quotes_gpc on\n"; - $OUT .= " php_flag track_vars on\n"; + $OUT .= " \n"; + $OUT .= ' SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"'."\n"; + $OUT .= " \n"; $OUT .= "<\/Directory>\n"; $OUT .= "\n"; }