1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pihole_ynh.git synced 2024-09-03 20:05:58 +02:00

Fix this fucking cron

Anyway, we can't make any upgrade independently from the package...
This commit is contained in:
Maniack Crudelis 2018-02-23 20:09:08 +01:00
parent 659cde42fd
commit f8bbbc4b2b
2 changed files with 10 additions and 0 deletions

View file

@ -129,6 +129,9 @@ mkdir -p "$pihole_dir"
cp -a "$pihole_local_repo/gravity.sh" "$pihole_dir/"
cp -a $pihole_local_repo/advanced/Scripts/*.sh "$pihole_dir/"
# And copy this fucking COL_TABLE file...
cp -a "$pihole_local_repo/advanced/Scripts/COL_TABLE" "$pihole_dir/"
#=================================================
# COPY THE PI-HOLE MAIN SCRIPT
#=================================================
@ -299,6 +302,8 @@ systemctl start dnsmasq
#=================================================
cp $pihole_local_repo/advanced/pihole.cron /etc/cron.d/pihole
# Remove git usage for version. Which fails because we use here a release instead of master.
ynh_replace_string ".*updatechecker.*" "#&" /etc/cron.d/pihole
#=================================================
# BUILD THE LISTS WITH GRAVITY

View file

@ -100,6 +100,9 @@ pihole_dir="/opt/pihole"
cp -a "$pihole_local_repo/gravity.sh" "$pihole_dir/"
cp -a $pihole_local_repo/advanced/Scripts/*.sh "$pihole_dir/"
# And copy this fucking COL_TABLE file...
cp -a "$pihole_local_repo/advanced/Scripts/COL_TABLE" "$pihole_dir/"
#=================================================
# Copy the Pi-hole main script
#=================================================
@ -175,6 +178,8 @@ ynh_store_file_checksum "$setupVars" # Enregistre la somme de contrôle du fichi
#=================================================
cp $pihole_local_repo/advanced/pihole.cron /etc/cron.d/pihole
# Remove git usage for version. Which fails because we use here a release instead of master.
ynh_replace_string ".*updatechecker.*" "#&" /etc/cron.d/pihole
#=================================================
# START PIHOLE-FTL