diff options
author | Luka Karinja | 2017-04-02 09:40:58 +0200 |
---|---|---|
committer | Luka Karinja | 2017-04-02 09:40:58 +0200 |
commit | bcf62307e0509faeb9ece14abbac6b5835c5a6aa (patch) | |
tree | ede202eebed19059a71f075535d81608b3ec2a1e /oscam.install | |
download | aur-bcf62307e0509faeb9ece14abbac6b5835c5a6aa.tar.gz |
oscam emu: 739, oscam-git: 11380
Diffstat (limited to 'oscam.install')
-rw-r--r-- | oscam.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/oscam.install b/oscam.install new file mode 100644 index 000000000000..30cc782e0889 --- /dev/null +++ b/oscam.install @@ -0,0 +1,31 @@ +post_install() { + systemd-sysusers + + if [ ! -f /var/lib/oscam/oscam.conf ]; then + mkdir -p /var/lib/oscam + cat <<'EOF' > /var/lib/oscam/oscam.conf +[global] +logfile = syslog + +[webif] +httpport = 8080 +httpuser = myusername +httppwd = mypassword +httpallowed = 0.0.0.0-255.255.255.255 +EOF + chown -R oscam:oscam /var/lib/oscam + echo "Default username: myusername" + echo "Default password: mypassword" + echo "Default webinterface port: 8080" + echo "WARNING! Webinterface is accessible for all IPs by default. Change that!" + fi +} + +post_upgrade() { + systemd-sysusers + + if [ ! -f /var/lib/oscam/oscam.conf ]; then + mv /var/lib/oscam/oscam.conf.pacsave \ + /var/lib/oscam/oscam.conf 2> /dev/null + fi +}
\ No newline at end of file |