File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5454
5555# Install the package
5656echo " Installing PySyslog LFC..."
57- pip3 install .
57+ pip3 install --system .
5858
5959# Create necessary directories
6060echo " Creating system directories..."
@@ -99,6 +99,14 @@ echo "Installing systemd service..."
9999cp etc/systemd/system/pysyslog.service /etc/systemd/system/
100100chmod 644 /etc/systemd/system/pysyslog.service
101101
102+ # Ensure the executable is in the system path
103+ echo " Setting up executable..."
104+ if [ -f /usr/local/bin/pysyslog ]; then
105+ cp /usr/local/bin/pysyslog /usr/bin/
106+ chmod 755 /usr/bin/pysyslog
107+ chown root:root /usr/bin/pysyslog
108+ fi
109+
102110# Reload systemd
103111echo " Reloading systemd..."
104112systemctl daemon-reload
Original file line number Diff line number Diff line change 4545 echo " Log directory not found, skipping..."
4646fi
4747
48+ # Remove executable if it exists
49+ if [ -f /usr/bin/pysyslog ]; then
50+ echo " Removing executable..."
51+ rm -f /usr/bin/pysyslog
52+ else
53+ echo " Executable not found, skipping..."
54+ fi
55+
4856# Remove system user and group if they exist
4957if getent passwd pysyslog > /dev/null; then
5058 echo " Removing system user..."
You can’t perform that action at this time.
0 commit comments