X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/b7dc2b69d6f7d354ddd82fc3f64fed711ceb317d..996b5fdc6f6aa459d079154b3025cc4c24e802b4:/debian/eclipse-cpp.postinst diff --git a/debian/eclipse-cpp.postinst b/debian/eclipse-cpp.postinst new file mode 100755 index 0000000..83b1889 --- /dev/null +++ b/debian/eclipse-cpp.postinst @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +for user in user nutzer kurs; do + if [ -d /home/$user ]; then + echo "Install eclipse for user $user" + pushd /home/$user >/dev/null + + if [ -d Schreibtisch ]; then + pushd Schreibtisch >/dev/null + su $user -c "ln -sf /opt/eclipse-cpp/eclipse ." + popd >/dev/null + fi + + if [ -d Desktop ]; then + pushd Desktop >/dev/null + su $user -c "ln -sf /opt/eclipse-cpp/eclipse ." + popd >/dev/null + fi + popd >/dev/null + fi +done +